How to show / hide form field based on date?

  • Profile Image
    EVS_
    Asked on June 23, 2019 at 04: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



    This is a re-post of a comment on Smart Forms: Conditional Logic for Online Forms

  • Profile Image
    ashwin_d
    Answered on June 23, 2019 at 07: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.