Is there a way to set restrictions on the date/time?

  • saracaylorSMA
    Asked on May 16, 2014 at 12:38 PM

    I would like the user to only be allowed to select a time frame between today and 30 days prior today (today-30).

  • Elton Support Team Lead
    Replied on May 16, 2014 at 3:49 PM

    Hi,

    There's a workaround for that using Conditional Logic. Like if the user passes the 30 days limit, you can hide the submit button and display a text message so the user will be aware of the limit at the same time, they can't submit the form since the submit button is hidden.

    To achieve that,

    1. Add a Date/Time Field to your form and a message using Text Tool.

    Is there a way to set restrictions on the date/time?  Image 1 Screenshot 40

    2. Set a Hide/Show Condition like the following.

    Is there a way to set restrictions on the date/time?  Image 2 Screenshot 51

    today on the screen below means the current users date and then add 30 days so users that selects more 30 days starting the current date, they will not be able to submit the form.

    Is there a way to set restrictions on the date/time?  Image 3 Screenshot 62

    Here's an example: http://form.jotformpro.com/form/41353919041956?

    Hope this helps. Thanks!