JotForm User Guide / Advanced Features /

Enable or Disable a Form Based on Time Using Conditions

Enable or Disable a Form Based on Time Using Conditions

There are occasions when you wanted to restrict access to your form on certain hours. Some use cases are when you:

­čöś Cater registrations and you only want to accept entries during business hours.

­čöś Offer promotions that are only available on certain hours.

­čöś Handle applications on specific time slots.

Regardless, it all boils down to limiting your users from submitting the form during certain hours within a day. To achieve that, we only need these features to work hand in hand:

Time Field: This field will be used to get the current time when the form was opened.

Conditions: Conditions will be used to check if the user opened the form within the timeframe you specify.

Text Field: An optional but great addition to have. This will be used to give a visual cue to your users that the form is unavailable.

Let's get started:

1. Build and finish your form first. If you already have one ready, just open it on your Form Builder.

2. Add a Time Field to your form.


4. Set the field as READ-ONLY so users can't modify the time value being used with the Condition. An optional step is to HIDE it too if you don't want it seen by your users.

5. Add a Text Field that will conditionally show if a user opens the form outside of business hours. You're free to design this upon your discretion since the field accepts HTML/CSS. In this guide, we'll go with a simple text that will tell them that the form is not available.

6. Now, it's time to setup the Condition. It's worth noting that this is an advanced feature and requires good understanding of how to setup conditions. If you haven't done this before, we recommend you go over the guide we're linking below before you proceed.

Related guide: Smart Forms Using Conditional Logic

You need to decide when your form will be available. For this guide, we went with the usual business hours schedule of 10am to 6pm.

So, this is how the Condition would look like:

In layman's terms, the logic goes like this:


  SHOW the Text Field warning message AND

  HIDE MULTIPLE fields including the Submit Button

Setting up the condition like this should suffice in handling the visibility of the fields. For example, if there are certain fields that you want to remain visible even outside business hours, then just replace the SHOW action with SHOW MULTIPLE. Afterwards, include/exclude the fields you wish to be displayed.

Related guide: Hide or Show Multiple Fields at Once

If you want to incorporate a DATE into the equation, the idea is still relatively the same. Just go with the setup above, as is, only this time:
   - With the addition of a DATE PICKER field to your form
   - Include it as 1 of your IF Statements to trigger the SHOW / HIDE Action

You can view the completed form by clicking this link. We suggest you clone it if you want to have a closer look at how the form was built.

Comments, suggestions and questions are always welcome! Feel free to post them below.

Contact Support:
Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:
Contact JotForm Support:

Send Comment


  • Dunckele

    I am not sure this is what I need. I need the to be able to send the link to my form tomorrow, but have the link not be active until October 5, 2020 at 9am and close on October 7 at 1pm, is there any way I can do this?

  • Carrera_Mauro

    This works if i have people arround the glove? Example in Argentina is 14PM and in mexico is 21PM how this works? It will be enabled because of the "time in mexico"?....

  • mhcforms

    I would like to have my from be active on a certain date after a certain time and remain active until the submission cap is met. I have followed the instruction in this article "Enable or Disable a Form Based on Time Using Conditions? but the in order to make it work I had to set the DO part of the conditional statement opposite from the example.

    I want to have the form active after 9:00am on March 1st.
    Here is the link to my form
    Thank you for your assistance.

  • Tony

    Is there any way to add a specific Day, i.e. Saturday or Sunday. - plus the time.????
    i.e. So that form is not available on Sunday during certain hours ???

  • vbackman

    I would like to second the comment by Charlesmitchquimanhan from April 2018. I also have a need to open a form at a certain time for registration, and I also have interested parties across the US. As there is very limited registration available, I could have a problem with people getting wise to having someone in an earlier time zone register them.
    Thanks, Vickie