Help with catalog client script

Thomas99
Tera Contributor

Hi

 

Can someone please help me with catalog client script

 

I have a date variable in the new hire form.

The requirement is user should only be allowed to select the "start date" as current date + 2 business days (exclude sat sun). 

 

Example: If I'm filling the form today , (Sept 11) the start date should be Sept 14 or further. User should not be be able to select an ealier date. 

 

Thanks,

 

3 REPLIES 3

Thanks. I could not get a + two business days working.  How to exclude sat, sun if the request is submitted on a Friday? 

jonsan09
Giga Sage
Giga Sage

In that case you'll need to go down the GlideAjax/Script include route, this post goes over setting up a script include to filter out certain days of the week: https://www.servicenow.com/community/developer-forum/how-to-exclude-weekends-from-onchange-client-sc...