Date and time in Web Form Builder -...

User 187934 Photo


Senior Advisor
20,181 posts

Specific days?
If so adjust the datepicker js script on each form.
Remove the weekend specific and put in the ability to do specific days.
Specific dates is already built in using the Blocker form.
jQ(function() {

//***Datepicker
var UnavailableDates = ["<?php echo implode('","', $results);?>"];

//Sunday=0 to Saturday=6.
NotworkingDays = [2, 3, 5];

function Unavailable(date) {
dmy1 =date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate() ;
if (jQ.inArray(dmy1, UnavailableDates) >=0 || NotworkingDays.indexOf(date.getDay()) > -1) {
return [false,"", "Appointments Unavailable"];
} else {
return [true, "", "Appointments Available"];
}
}
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2982483 Photo


Registered User
43 posts

Great, thanks again Eric. Sorry for being so demanding ;)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.