How to limit the time selection?

  • Duo0
    Asked on June 13, 2024 at 11:37 AM

    Hola, estoy usando el widget dateTime pero necesito establecer un rango de horas para que la gente pueda programar porque no estamos abiertos las 24 horas del día.

  • Israel JotForm Support
    Replied on June 13, 2024 at 11:46 AM

    Hello Duo0,

    Thanks for reaching out to Jotform Support. Our Spanish Support agents are busy helping other Jotform users right now, so 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 Spanish, let us know and we can have them do that. But, it might take a while until they're available again.

    There's no way to limit the time to select from the Date Picker field. I suggest using the Appointment field where you set the start and end time or date. Let me show you how to add it.

    1. On the Form Builder page, click on the Add Form Elements at the upper left.
    2. On the Form Elements, go to the Basic tab and click on the Appointment field to add.
    3. The Appointment Properties opens on the right, go to the Availability tab.
    4. On the Appointment Slot Duration, enter 5 minutes custom duration.
    5. Under the Intervals, set from 7:00 to 18:05 (24-hour format).

    How to limit the time selection Image 1 Screenshot 30 Screenshot 20

    Five minutes is added into the end time, so it will display 6:00 PM. Here's what it looks like when viewed live:

    How to limit the time selection? Image 1 Screenshot 31

    If that’s not exactly what you’re looking for, can you explain a bit more so I can help you better?

    Keep us updated and let us know if you need any more help.

 
Your Answer