How to restrict Date optionality using a UI policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 04:03 AM - edited 03-28-2024 04:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 09:28 PM
Hi @Cuber please check below link
https://www.servicenow.com/community/developer-articles/date-validations-client-scripts/ta-p/2298860
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 02:11 AM
Hi @Harish Bainsla ,
Thank you for your response. Unfortunately I don't have the option to write/input scripts with my current role.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 09:30 PM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 03:01 AM
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.
