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 Field Validation

Community Alums
Not applicable

Hello Team,

 

I have Requirement , one the record producer variable Requested start date :- 

 

My requirement on this particular variable :-  Requester should only be able to put submit date + 1 here. 

 

e,g :- Suppose current timing is  12: 30 PM and todays date is 8th of AUG then User needs only to select 12 :31 PM of 9th  AUG and after that date. which means after that particular timing 12:30 PM I can select 12:31 and after date .

 

Thank you. 

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @Community Alums,

 

This is very easily achieved using a UI Policy.

See the below configuration and screen shots

 

Tip: Make sure you select the relative value to 'before' as shown below as when this condition is met, our script on the 'Script' tab - Execute if true field will execute.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

 

Screenshot 2024-08-08 at 11.23.55.pngScreenshot 2024-08-08 at 11.24.34.png

View solution in original post

1 REPLY 1

Robbie
Kilo Patron
Kilo Patron

Hi @Community Alums,

 

This is very easily achieved using a UI Policy.

See the below configuration and screen shots

 

Tip: Make sure you select the relative value to 'before' as shown below as when this condition is met, our script on the 'Script' tab - Execute if true field will execute.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

 

Screenshot 2024-08-08 at 11.23.55.pngScreenshot 2024-08-08 at 11.24.34.png