Field Form Rules question
Hi everyone!
I wrote FFR for users, which wrote requests in non operational hours. it seems like this:
- var currentDate = new Date();
- if ((currentDate.getHours() < 8)||(currentDate.getHours() >= 17))
- {
- alert('message1');
- }
- if ((currentDate.getDay() === 0)||(currentDate.getgetDay() === 6))
- {
- alert('message2');
- }
There is a little problem in regular holidays, maybe there is way to get holidays like .getDay?
New to ADSelfService Plus?