How to show / hide form field based on date?

  • EVS_
    Asked on June 23, 2019 at 4:14 AM

    Hi, I am trying to set up a condition where if the date is less than 3 years old of today's date it will show another field if not it will hide the other field. Is there any help. Thanks

  • Ashwin JotForm Support
    Replied on June 23, 2019 at 7:28 AM

    Yes it is possible to achieve your requirement. You can take advantage of our form calculation widget to calculate the number days between two dates. You can then add condition in form to check the number of days and then show / hide another field.

    Please take a look at the following demo form where I have added date field and form calculation widget to calculate the number of days: https://form.jotform.com/91733635133960 

    Feel free to clone this form for a closer look. The following guide should help you in form cloning: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    We will wait for your response.