Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to select only future date in date field using onsubmit client script

sriram7
Tera Contributor

Hi Team,

 

I have date field called return date. In that date field I need to select only present and future dates.

I can achieve this using ui policy, but I want to using client script.

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@sriram7 

no scripting is required. just use UI policy

check this blog

No Code date validations through (Catalog) UI Policies 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@sriram7 

Did you get a chance to check the above link?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader