Answers.Body: <p>On the webform element config set the default value for your civicrm custom date and time fields to ‘now’.</p>
  <p>Hide the field using a conditional, or set it to read only.</p>
  <p><a href="https://i.sstatic.net/2fkD1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2fkD1.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-06T15:53:03.117Z
Answers.Text: But that hardcodes today into the default as a static 06-Dec-2020 date forever.  Tomorrow it will still say 06-Dec-2020.
Answers.UserDisplayName: HeneryH
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-06T16:13:44.970Z
Answers.Text: I think I may have gotten the format ok.  I first picked a random time to set as default value using the UI then I went to the source view and changed it to the token. '#default_value': '[current-date:html_date]'
Answers.UserDisplayName: HeneryH
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-06T19:04:30.433Z
Answers.Text: ‘now’ is always ‘now’ -> we use that on over 100 webforms.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-06T19:13:44.377Z
Answers.Text: 'now' will be evaluated every time someone goes through the webform
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-07T00:08:18.920Z
Answers.Text: do you manually edit that into the source in the form setup as the default value or use the UI editor (ie that right-bar)?  I think I was having strangeness when using 'now' in the UI editor.
Answers.UserDisplayName: HeneryH
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-06T15:17:45.817Z
Answers.LastActivityDate: 2020-12-06T19:12:57.127Z
Answers.LastEditDate: 2020-12-06T19:12:57.127Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>Here is the problem I am having...  I am using a Drupal Civi web form to allow people to join a waitlist.</p>
  <p>Obviously the time the form is submitted is important to where they are on the wait list.</p>
  <p>I see two possibilities:</p>
  <ol>
  <li>Use the Contact Record Creation Date - but this has some practical challenges.  The contact creation date record is not easily usable in the various CiviCRM reports and searches (that field never shows up as usable in civi).  And using that contact creation date as a proxy for the waitlist sign up date makes assumptions about the contact that might be incorrect in some use cases.</li>
  <li>Using a new Field-Set for a Contact for waitlist purposes.  This is nice because in that field set I can collect extra data such as a little bit about the person joining the waitlist.  But this has a problem in that I can't figure out how to get that Civi Date Field pre-filled with [current-date] and either hidden or non-editable.  I can get that new Civi Custom Field Set on the form just fine but I can't figure out how to get it set to [current-date].</li>
  </ol>
  <p>Anyone following along or did I totally mangle the description of my problem?</p>
  <p>Thanks</p>
  
Tags: <drupal>
Title: CiviCRM - Drupal - Webform Submissions - how can I track the date submitted
ThreadText: # CiviCRM - Drupal - Webform Submissions - how can I track the date submitted
  
  (Asked by: username_0 on 2020-12-05)
  
  Here is the problem I am having... I am using a Drupal Civi web form to allow people to join a waitlist.
  
  Obviously the time the form is submitted is important to where they are on the wait list.
  
  I see two possibilities:
  
  1. Use the Contact Record Creation Date - but this has some practical challenges. The contact creation date record is not easily usable in the various CiviCRM reports and searches (that field never shows up as usable in civi). And using that contact creation date as a proxy for the waitlist sign up date makes assumptions about the contact that might be incorrect in some use cases.
  2. Using a new Field-Set for a Contact for waitlist purposes. This is nice because in that field set I can collect extra data such as a little bit about the person joining the waitlist. But this has a problem in that I can't figure out how to get that Civi Date Field pre-filled with [current-date] and either hidden or non-editable. I can get that new Civi Custom Field Set on the form just fine but I can't figure out how to get it set to [current-date].
  
  Anyone following along or did I totally mangle the description of my problem?
  
  Thanks
  
  **Tags:** drupal
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-06. Score: 2
  
  On the webform element config set the default value for your civicrm custom date and time fields to ‘now’.
  
  Hide the field using a conditional, or set it to read only.
  
  [![enter image description here](https://i.sstatic.net/2fkD1.png)](https://i.sstatic.net/2fkD1.png)
  
  > **Comments:**
  > **username_0**: But that hardcodes today into the default as a static 06-Dec-2020 date forever.  Tomorrow it will still say 06-Dec-2020.  
  > **username_0**: I think I may have gotten the format ok.  I first picked a random time to set as default value using the UI then I went to the source view and changed it to the token. '#default_value': '[current-date:html_date]'  
  > **username_1**: ‘now’ is always ‘now’ -> we use that on over 100 webforms.  
  > **username_1**: 'now' will be evaluated every time someone goes through the webform  
  > **username_0**: do you manually edit that into the source in the form setup as the default value or use the UI editor (ie that right-bar)?  I think I was having strangeness when using 'now' in the UI editor.  
  
  ---
  
  