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

  • Profile Image
    JFedGMW
    Asked on December 06, 2017 at 02: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. 

  • Profile Image
    EltonCris
    Answered on December 06, 2017 at 03: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?

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

    Hope this helps!

  • Profile Image
    JFedGMW
    Answered on December 06, 2017 at 04: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.

  • Profile Image
    EltonCris
    Answered on December 06, 2017 at 05: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.