Select a date beyond the current date

  • Ryan_Rood
    Asked on September 3, 2024 at 1:08 PM

    Hello,

    Is it possible to force a user to select a date beyond the current date? We are trying to get users to either pick an expiry date in the future or to set an actual date. People are still struggling with understanding so I am trying to add code to prevent it from happening. I would appreciate any feedback on this.

    For example they are putting the current date in this box when they really shouldn't be entering anything for no expiry date.

    Select a date beyond the current date Image 1 Screenshot 20

  • Lorevie JotForm Support
    Replied on September 3, 2024 at 2:46 PM

    Hi Ryan,

    Thanks for reaching out to Jotform Support. You can use the Date Picker field instead of the Date Picker widget. Let me show you how to do this:

    1. In Form Builder, click on the Add Form Element on the left side of the page.
    2. Select Date Picker from the Basic tab. Select a date beyond the current date Image 1 Screenshot 40
    3. Click on the Gear icon.
    4. From the Options tab, select the Default Date to None. Select a date beyond the current date Image 2 Screenshot 51

    Here's the result:

    Select a date beyond the current date Image 3 Screenshot 62As you can see from the screenshot above, there's no current date that's automatically been added. We also have a guide on How To Use The Date Limits Options that you can check out.

    Let us know if you have any other questions.

  • Ryan_Rood
    Replied on September 3, 2024 at 3:51 PM

    Thank you. I believe this will work for me. :)

Your Answer