Date Picker: Make it possible to disable a date range that cycles every year

  • JFedGMW
    Asked on December 6, 2017 at 2:22 PM

    The date range when set to a specific time span (such as July 1, 2017 - August 31, 2017) displays invalid dates as greyed-out. However, is it possible to set the widget to only display the valid dates. In this case we want to restrict the valid dates to 7/1-8/31-17, but using the form now in December requires the user to advance the calendar to the month of July in order to select a date. 

  • Elton Support Team Lead
    Replied on December 6, 2017 at 3:58 PM

    I think that's not possible yet but I can submit that as a feature request.

    Just to clarify, you want to disable a date range that applies every year?

    Date Picker: Make it possible to disable a date range that cycles every year Image 1 Screenshot 30

    A workaround that I know that would work for now is to manually add each date to be disabled in Disable Custom Dates

    Date Picker: Make it possible to disable a date range that cycles every year Image 2 Screenshot 41

    Hope this helps!

  • JFedGMW
    Replied on December 6, 2017 at 4:20 PM

    I think the best description would be to ENABLE a specific date range so that only that date range would be available when scrolling through the calendar. As an example, today is December 6. The acceptable range of dates is June 1 through August 31. Therefore, a user when entering a date into the widget would ONLY see the months of June, July, and August and no other months.

    Thanks for the consideration.

  • Elton Support Team Lead
    Replied on December 6, 2017 at 5:30 PM

    There's no enable limit but that can be achieved when it is possible to disable date range that goes every year.

    Example:

    1-1 > 6-30

    9-1 > 12-30

    This means only the date range 7-1 > 8-31 are enabled.

    Anyway, once this is made possible, we will let you know here.