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 optionality using a UI policy

Cuber
Tera Contributor

Hi all, 

 

First time posting in this forum. I'm creating an SC Catalog Form and using the "Date" variable. I want to limit or restrict the date options to 1 month from "today's date" (date of the submission of the request). Meaning, I don't want a user to be able to select a date more than 1 month ahead as well as any past dates relative to "today's date" or the date the user is submitting the request. 

 

How can I accomplish this without using a script? I don't seem to have the option of using scripts with my current permissions on our platform. 

 

Thank you

13 REPLIES 13

Hi @Harish Bainsla ,

 

Thank you for your response. Unfortunately I don't have the option to write/input scripts with my current role. 

@Cuber  please ask them to give role to you and use code which is given in the link which i share

and if my answer helps you please accept solutions and mark helpful 

Hi @Harish Bainsla, Our corporation has strict rules about who gets full administrative rights on this platform. So this the main reason I was looking to create the policies without using a script.