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?


1 Answer 1


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

  • But that hardcodes today into the default as a static 06-Dec-2020 date forever. Tomorrow it will still say 06-Dec-2020.
    – HeneryH
    Dec 6, 2020 at 15:53
  • 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]'
    – HeneryH
    Dec 6, 2020 at 16:13
  • ‘now’ is always ‘now’ -> we use that on over 100 webforms. Dec 6, 2020 at 19:04
  • 'now' will be evaluated every time someone goes through the webform Dec 6, 2020 at 19:13
  • 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.
    – HeneryH
    Dec 7, 2020 at 0:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.