What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How do I format the date value in a conditional?

    Asked by toddsforms 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

    conditional date date values
  • Profile Image
    JotForm Support

    Answered by Mike 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
    JotForm Support

    Answered by Mike 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

    Answered by toddsforms 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
    JotForm Support

    Answered by Welvin 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

    Answered by toddsforms on November 06, 2015 at 01:34 PM

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