How do I limit the Date and Time Picker?

  • Profile Image
    NookRealtyNY
    Asked on December 20, 2020 at 07:47 AM

    What is the best date and time pickers to accomplish this:

    Date: Limit to a single date (not a range) in the future (ideally 72hrs from submission date-so you cannot select the next three days). Also limited to Monday-Friday or Saturday

    (your standard/basic date picker seams to to all that, except the next three days)

    Also, can you disable holidays easily or do I have to manually enter those every year?

    Time: start and end times limited to 9AM to 5PM in 30 minute intervals.

    haven't found a single widget that allows limiting the time one can select.


    thank you.

  • Profile Image
    roneet
    Answered on December 20, 2020 at 09:11 AM

    I think Appointment slots would work for you. You can schedule minimum scheduling notice to 72 hours:

    1608473260_5fdf5aac232ec_

    You can limit the days from the settings:

    1608473371_5fdf5b1bbc76a_

    You can also configure the slot duration from the appointment settings.

    Let us know if you have further questions.

    Thanks.

  • Profile Image
    NookRealtyNY
    Answered on December 20, 2020 at 10:06 AM

    Great, that sort of works. Wanted the duration be flexible (up to 4 hours) so, the user selects a start and end time within the interval, but I can just add another time field for the end time and use this as a start time.

    also wondering if there is a widget for checkboxes where the user can enter the number of items requested and I can use the value entered to show/hide fields. This is all for a moving application.

    Basically, I like to combine these two, the checkboxes and number fields if that is possible. Based on the numbers entered, I will then show/hide fields to enter further information about the unit owners, tenants, pets etc. Just wondering if there is an easier widget for this.


    1608476634_5fdf67daac3cc_1608476637_5fdf67dd5e094_


  • Profile Image
    Kenneth_C
    Answered on December 20, 2020 at 11:03 AM

    Hi there,

    You may use multiple appointment fields, hide them, and based on conditions, you may show which appointment field has the duration they wish.

    Here is the related guide: https://www.jotform.com/help/316-how-to-show-or-hide-fields-base-on-users-answer

    You may use a checkbox to allow users to select how long the appointment is.

    I hope that helps.

    Best.

  • Profile Image
    NookRealtyNY
    Answered on December 27, 2020 at 10:48 AM

    With the appointment slot widget, can this be accomplished?

    Typically we want to limit someone making an appointment less than 24 hours in advance, however on weekend and holidays, the appointments should be made by 1PM on the prior business day.

    For example, right now i have the 24 hour limit set, but I could make an appoitment on saturday for Monday morning 9am. I'd like to limit that if you haven't made the appointment by 1PM on Friday, you cannot make any appointments on Monday. Is that possible?

    So basically appoitments must be made by 1PM on the prior business day regardless if it's a weekend or a holiday or excluded vacation. thanks

  • Profile Image
    ashwin_d
    Answered on December 27, 2020 at 11:24 AM

    Please note that in the appointment field, you can set the "Minimum Scheduling Notice" in the number of hours that you want to set a minimum amount to notice. It seems this you have already configured in your form's appointment field.

    Unfortunately it is not possible to set the time to be 1PM on the previous day in the appointment field.

    Hope this helps.

    Do get back to us if you have any questions.