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 Restrict Date field that user should able to enter date between 1990-200 year.

Shweta Kasbe1
Tera Contributor

How to Restrict Date field that user should able to enter date between 1990-200 year if he enters 2001 its should not able to create record. and also throw error invalid date

 

7 REPLIES 7

I required validation on catalog form.I am having a field as dob

find_real_file.png

 

Hi,

so what script did you start with and where are you stuck?

regards
Ankur

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

Aman Kumar S
Kilo Patron

Hey,

You can create a UI policy with condition.

I have used created field, you can use same filters and select date from 01/01/1990 to 31/12/2000

And use showfieldmessage in script to give message to user to select correct date.

find_real_file.png

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar