I would like to control the time with the date in my form.
Here is the link: https://form.designactive.net/powers-pediatrics/
I would like to set different time option for Mon-Thu and if people select Fri or Sat then the time should change to 9:00 am to 12:30 pm. If people select the other days between Mon-Thu then the time will need to be same as right now. Please help me about it so I can add it.
I've added some code in the form JavaScript in order to disable the Sunday.
Here is the code:
jQuery(function ($) {
var datepicker = $('.quform-field-2_18').data('kendoDatePicker');
if (datepicker) {
datepicker.setOptions({
disableDates: function (date) {
return date && (date.getDay() === 0 || date.getDay() === 7);
}
});
}
});
2_18 is the filed id. Now what code should I add in order to control the time with the date like I described? I am using quform wordpress plugin. Thanks