How can I restrict users to select specific time based on day they choose?

  • sta2
    Asked on April 26, 2024 at 10:22 AM

    Something happened to THe Shroud Form where we no longer can pick times.


    The time and date options are supposed to be:

    Monday : 5 pm or 6pm or 7pm

    Friday: 4pm or 5pm.

    They were in at one time. How do I add them back in. Their options should be Monday at 5 or 6 or 7 and Friday 4 or 5pm.


  • Ibrar JotForm Support
    Replied on April 26, 2024 at 12:18 PM

    Hi Judy,

    Thanks for reaching out to Jotform Support. When I cloned and tested your form, the same thing happened for me. After investigating it a bit, I found that you have only restricted the users to select the day, either Mon or Fri. Unfortunately, the time picker element won't have the ability to restrict users to select a specific time. In case you want to restrict users to select day and time, we recommend you to use appointment field instead of date and time picker element. Adding appointment element and configuring available time slots and days are really easy, let me show you how you can do it:

    1. In Form Builder, click on the Add Form Element menu on the left side of the page.
    2. Under the Basic tab, scroll down the list and add the Appointment element, by clicking on it or dragging and dropping onto your form.
    3. Select the Appointment element and click on Gear icon.
    4. Under Availability tab, in Intervals section set the start and end time, click on Downward arrow in below text box and choose Mon only.
    5. Click on + Add New Interval and setup time slot for Fri.

    How can I restrict users to select specific time based on day they choose? Image 1 Screenshot 30

    Result:

    How can I restrict users to select specific time based on day they choose? Image 2 Screenshot 41

    You can check out the demo form. If you want to clone the demo form, you can easily clone it. This guide will show you how to do that. We also have a guide about How to View Your Form's Revision History that you can check out.

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

 
Your Answer