How do I create a form that has a set time period?

  • novinaherzogenaurach
    Gefragt am 20. Februar 2024 um 10:22

    Es sollen nur Antworten zwischen 12.00 Uhr und 23.59 Uhr angenommen werden.

  • Neil Jotform Support
    Geantwortet am 20. Februar 2024 um 12:52

    Hi novinaherzogenaurach,

    Thanks for reaching out to Jotform Support. Unfortunately, our German Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in German, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. Yes, it's possible to set a time period on a form. We can use conditional logic to hide all the form fields and the submit button if a form submitter tries to submit an entry outside your chosen hours. Let me walk you through it:

    We will be using a Time Field to get the user's current time when they open your form, and a Paragraph field to display a message telling your users that the form is unavailable.

    1. In Form Builder, click the Add Form Element and add the Time Field.

      How do I create a form that has a set time period? Image 1 Screenshot 80
    2. Then, click on the gear icon to open its properties.
    3. Go to Options tab, and set the Default Time to Current.

      How do I create a form that has a set time period? Image 2 Screenshot 91
    4. After that, go to the Advanced tab, toggle the Read Only and Hide Field to on. This will make the Time field uneditable and hidden to your form.

      How do I create a form that has a set time period? Image 3 Screenshot 102

    Let's now add a Paragraph field to display the message:

    1. Click on the Add Form Element again, and add the Paragraph field.
    2. Click on the pencil icon to edit the text.
    3. Add your custom message. Here's an example:

      How do I create a form that has a set time period? Image 4 Screenshot 113
    4. Once you're done, click the check icon to save your changes.

    After that, we will now create the condition. Here's how to do it:

    1. In Form Builder, go to Settings at the top.
    2. Select Conditions on the left panel.
    3. Choose Show/Hide Field option.

      How do I create a form that has a set time period? Image 5 Screenshot 124
    4. Then, set up the condition like my example below:

      How do I create a form that has a set time period? Image 6 Screenshot 135

    That's it. Here's the result:

    How do I create a form that has a set time period? Image 7 Screenshot 146

    You can check out my demo form here. Feel free to clone it to further test it.

    Give it a try and let us know if you need more help.