Answers.Body: <p>I don't think so, no. But then, I don't think you can do this through the regular CiviCase UI either.</p>
  
  <p>Perhaps the solution would be to expose the opened and closed dates to the webform as fields? This would require patching webform_civicrm/includes/utils.php to add them under <code>function wf_crm_get_fields</code>). If that works for you, please submit a pull-request back :)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T18:59:08.200Z
Answers.Text: Thanks, I'll look into that Coleman.  In the Civi UI, when you click on Add Case, you can select a Case Start Date.  When you select the Change Case Status activity and assign a date, that date is entered as the closing date of the case.  However, if I try the same approach in a Webform (enable one instance of case processing and one Change Case Status activity in the CiviCRM integration tab) it resolves the case today and shows the activity with the date from the Webform.
Answers.UserDisplayName: pmoz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-16T12:56:00.090Z
Answers.Text: Added case start date, end date and case details to webfom-civicrm utils.php. Pull request is here: [link](https://github.com/colemanw/webform_civicrm/pull/51)
Answers.UserDisplayName: pmoz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T16:08:42.067Z
Answers.LastActivityDate: 2015-11-06T16:08:42.067Z
Answers.UserDisplayName: Coleman
Body: <p>We've successfully got Webforms that open or close a case and assign a case role.</p>
  
  <p>However, I can't seem to figure out how to specify a date to close or open the case.  All submissions record the status change as today.</p>
  
  <p>Is there a way to specify a case start and/or end date through the webform other than today?</p>
  
  <p>I've tried adding activities to the form and using those dates, but that creates separate activities on those dates and does not apply the date to the change in case status.</p>
  
Tags: <webform-civicrm><civicase>
Title: How do I set a case open date and/or close date with a webform?
ThreadText: # How do I set a case open date and/or close date with a webform?
  
  (Asked by: username_0 on 2015-11-06)
  
  We've successfully got Webforms that open or close a case and assign a case role.
  
  However, I can't seem to figure out how to specify a date to close or open the case. All submissions record the status change as today.
  
  Is there a way to specify a case start and/or end date through the webform other than today?
  
  I've tried adding activities to the form and using those dates, but that creates separate activities on those dates and does not apply the date to the change in case status.
  
  **Tags:** webform-civicrm, civicase
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-11-06. Score: 1 | Accepted answer
  
  I don't think so, no. But then, I don't think you can do this through the regular CiviCase UI either.
  
  Perhaps the solution would be to expose the opened and closed dates to the webform as fields? This would require patching webform\_civicrm/includes/utils.php to add them under `function wf_crm_get_fields`). If that works for you, please submit a pull-request back :)
  
  > **Comments:**
  > **username_0**: Thanks, I'll look into that username_1.  In the Civi UI, when you click on Add Case, you can select a Case Start Date.  When you select the Change Case Status activity and assign a date, that date is entered as the closing date of the case.  However, if I try the same approach in a Webform (enable one instance of case processing and one Change Case Status activity in the CiviCRM integration tab) it resolves the case today and shows the activity with the date from the Webform.  
  > **username_0**: Added case start date, end date and case details to webfom-civicrm utils.php. Pull request is here: [link](https://github.com/colemanw/webform_civicrm/pull/51)  
  
  ---
  
  