How can I restrict users from selecting a date 5 days away from today and onwards?

  • Profile Image
    Dugie33
    Asked on February 19, 2018 at 10:19 PM

    with the date selector you are able to specify for say today+5 for the first date a user can select.

    This field unfortunately doesn't exactly work for what i want.

    The date reservation widget does.... Well kind of. I want to make it so that on the date reservation widget the user can only select 5 days away from today and onward.

    Any suggestions?

  • Profile Image
    Jim_R
    Answered on February 20, 2018 at 03:29 AM

    The today+n value only works with the regular DATE PICKER field. It doesn't work with other date-related widgets.

    You mentioned that your goal is to:

    I want to make it so that on the date reservation widget the user can only select 5 days away from today and onward.

    This can be achieved using the regular DATE PICKER field by setting your START DATE and END DATE to today+5 and say, December 31, 2030 respectively.

    With the setup above, your users can only select 5 days from today onwards until December 31, 2030 (which should be far ahead in to the future making it almost indefinite).

  • Profile Image
    Dugie33
    Answered on February 20, 2018 at 06:59 AM

    The date picker unfortunately doesn't work for my circumstance because I need to book appointments. But the date picker would allow infinite people to select that same day.


    The appointments widget also won't work as I'd have to make 30-31 different ones for each day of the month and show then when chosen with date picker.

  • Profile Image
    Richie_P
    Answered on February 20, 2018 at 09:29 AM

    The only solution we can think of at the moment is the date picker,which can select 5 days away from today and on wards but as you have said, the users can pick an infinite selection on that day.

    Do you want to add a feature request for the date reservation widget to have the functionality of the date picker to have a Start and end date?


  • Profile Image
    Dugie33
    Answered on February 21, 2018 at 07:22 AM

    That would be awesome!

  • Profile Image
    TREVON
    Answered on February 21, 2018 at 09:36 AM

    I have now forwarded this as a feature request to our backend team. Please note that we can't give an ETA for when this will be implemented. Feature requests depend on the workloads of our developers and popularity among our users. But rest assured we will inform you once this feature becomes available.