Disable selection of specific day && specific time (datepicker,timepicker) in a form

I was wondering if it is possible to define forbidden combinations of days and hours in the code in order to disable the selection of that times in a timepicker when in the datepicker is selected the day with that forbidden time in a form:

for example: Tuesdays 9:00 as forbidden combination.

The datepicker should allow to pick Tuesday, but when you choose a time in the timepicker, 9:00 will appear shadowed to avoid the selection but allow all the rest of the times for that day.

Is this possible?
I have been trying some code lines but I have no success.

Thanks in advance,
Santi

I can’t see any easy ways to do that. I have something kiiiinda similar, using onCustomValidation - Velo API Reference - Wix.com

You can’t grey out 09:00, but you can set up the validation to show it as invalid. And if failed validation show a text saying why it failed.

But if there’s a lot of weird combinations, it might turn into a lot of code.

1 Like