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

  • Profile Image
    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).

  • Profile Image
    EltonCris
    Answered on May 16, 2014 at 03: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.

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

    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.

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

    Hope this helps. Thanks!