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.

Date/Time Field Restriction Record Producer

Sam Ogden
Tera Guru

Hi All,

I have a date/time field on a record producer asking when the incident first occurred.

I have seen that the only way yo restrict this so people cannot add a date in the future is to have a script which validates this between the current date and the date selected when the field changes and then have a pop up message to warn the user.

I'm just not sure on how to script this?

Any help is greatly appreciated.

Thanks

37 REPLIES 37

Hi Pavan,



Just received some feedback internally and currently u_date variable is set to a date/time field - we need to change this to just a date field, will this need changing in the scripts?



Thanks


Sam,



Did you ever get this resolved?   Trying to do something similar with the Date/Time field on a record producer.



Thanks.



Jason


Jason


This thread will help you


How to restrict past date selection.



Please mark my response as correct and helpful if it helped solved your question.
-Thanks