Joining date is more than 60 days of todays date

Aman Trivedi1
Tera Contributor

Hi All, 

I have a requirement in catalog: 

 

if joining date is more than 60 days of todays date & Existing device catalog field does not contain any device/empty then set value of Request Type “Existing User Without Asset “ will be displayed.

Need help of How it is implemented .

4 REPLIES 4

Abbas_5
Tera Sage
Tera Sage

Hello @Aman Trivedi1,

Please refer to the below link:
https://www.servicenow.com/community/developer-articles/date-validations-client-scripts/ta-p/2298860

 

If it is helpful, please mark it as helpful and accept the correct solution.

Thanks & Regards,

Abbas Shaik

Hi @Aman Trivedi1 ,

 

Please create Onchange Client script, in that calculate the date difference between joining date and today , if condition difference greater than 60days you can write script in there.

 

Thanks

Arun

Arun_Manoj
Mega Sage

Hi @Aman Trivedi1 ,

 

Please create Onchange Client script, in that calculate the date difference between joining date and today , if condition difference greater than 60days you can write script in there.

 

Thanks

Arun

Any Script for Reference