Answered
Block dates in date box
Does anyone know the validation script that would only allow mondays through thursdays to be selected in the date box in adobe.
Does anyone know the validation script that would only allow mondays through thursdays to be selected in the date box in adobe.
You can use this code:
if (event.value) {
var d = util.scand("mm/dd/yyyy", event.value);
if (d.getDay()==0 || d.getDay()>=5) {
app.alert("You may only enter a date between Monday and Thursday.");
event.rc = false;
}
}Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.