PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

conditional form usage based on date calculations?

  1. I have a client who needs one form to visible based on an age calculation (entered birthdate makes the respondent at least 17 years old).

    I thought I could find what I needed by searching the forums, but discovered that the date field doesn't invoke the conditional logic, alas.

    I'm working out a way to make the conditional I need using a checkbox, but are there any plans to add date conditionals in future releases?

    Posted 13 years ago on Monday October 4, 2010 | Permalink
  2. Currently there are no plans for date conditionals because of the complexity in having it trigger the action. Conditionals are designed to work using select based fields and the date field is actually a text field. While it does have a datepicker, this is jQuery and only serves to make entering text in the text field easier for the user. It's not technically a selection field.

    Posted 13 years ago on Monday October 4, 2010 | Permalink
  3. You may be able to roll some custom jQuery to check for the date value and then show/hide other parts of the form based on the age.. something like one of these examples

    http://dev-tips.com/featured/how-to-validate-date-of-birth-with-jquery

    http://stackoverflow.com/questions/1198325/how-to-check-the-age-of-registrant-during-registration-using-jquery

    Posted 13 years ago on Monday October 4, 2010 | Permalink