What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

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

    Asked by saracaylorSMA 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
    JotForm Support

    Answered by EltonCris on May 16, 2014 at 03:49 PM


    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!