[SDF-92116] restriction of Schedule Start Time

[SDF-92116] restriction of Schedule Start Time

Hi,

 Few days back i got the below script from "Dinesh Bhaskaran" to restrict to raise a CR within 12 hours of the “Schedule Start Time” now I also want add another restriction of  "Schedule Start Time" should be >  "System date" in the same script. Please assist.

 

var date1=new Date();

var date2=$CS.getValue('SCHEDULEDSTARTTIME');

date2 = new Date(date2);

var diff = Math.abs(date1 - date2);

if (Math.abs(diff/(1000*60*60) < 24)) { 

   $CS.stopFormSubmission();

   alert("Ensure the time window is at least 24 hours");   


 

Thanks

Mostafiz


                  New to ADSelfService Plus?