• Hello,

    I’ve been working on this for hours not but haven’t been able to find a solution and so am hoping you can help.

    I have created a form which includes a date calendar that users can use to select their appointment day. Weekends shouldn’t be available and so I’d like those boxes to be deactivated on the calendar. Is there a way to achieve that?
    I know I can set an error if a weekend day is picked but it only displays if a weekend day is selected and it appears at the top of the page, ideally a user wouldn’t be able to select a weekend day at all so they don’t have to leave the calendar if they do try to select an invalid date because invalid dates won’t be clickable.

    Any suggestions would be greatly appreciated.

    Many thanks

    Jo

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi, joshaw, I’m another CF7 user.

    The default date calendar relies on the standard input element with the type being equal to date.

    Unfortunately, since it relies on the input element, there are not many options available for customization.

    You could potentially include the jQuery datepicker and then use the noWeekends attribute to prevent weekends from being selected.

Viewing 1 replies (of 1 total)
  • The topic ‘How to deactivate weekend days in date calendar’ is closed to new replies.