How do I format the date value in a conditional?

  • Profile Image
    toddsforms
    Asked on November 04, 2015 at 11:53 AM

    I'm trying to create a conditional that makes a field visible when the date entered is after a specific day. The goal is, if the client has been living in their home for less than 3 years, I need them to tell me their previous address. I've tried all sorts of ways to write the date as a value, but none seem to work when I preview the form. How do I write the date as a value for the conditional. 

     

    Here's a screenshot of what I'm working with.

     

    Thanks,

    Jonathan

  • Profile Image
    Mike
    Answered on November 04, 2015 at 05:45 PM

    We are sorry for the inconveniences. It looks like that explanation text is not added to the new conditions wizard yet.

    Here is an example from the old conditions wizard.

    So you can try with the next value to trigger 'for less than 3 years' dates.

    today -1095

    Please give it a try and let us know if you need any further assistance.

  • Profile Image
    Mike
    Answered on November 04, 2015 at 05:49 PM

    I would like to add that this is also possible to limit dates on the DateTime fields.

    How to Use the "Limit Dates" feature in a DateTime field

  • Profile Image
    toddsforms
    Answered on November 06, 2015 at 11:10 AM

    Thanks, Mike. I have it working. Is there a way to program the conditional so that it shows a field if the date entered is 3 years prior to today's date, rather than a static date?

  • Profile Image
    Welvin
    Answered on November 06, 2015 at 01:14 PM

    Yes, the first reply by Mike to use today -1095 in the conditional logic should work. That is a dynamic date setting.

    Thanks

  • Profile Image
    toddsforms
    Answered on November 06, 2015 at 01:34 PM

    Awesome. Every thing is in order. Thank you so much.