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 06:35 PM
Hi @Cuber what role do you have in servicenow? only admins can write script
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 02:32 AM
Hi @Harish KM I'm not an admin. It's a kind of Catalog Manager. So, because I'm not able to write scripts, I was looking for a solution I could employ using only UI policies. I did mention this in my original post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 06:25 PM - edited 04-03-2024 06:25 PM
Hi @Cuber I have verified in PDI OOB instance
if you have catalog_manager role, you can write UI Policy script if your the owner of catalog.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 01:24 AM
Hi @Harish KM I do have Catalog Manager role, however, I'm not an owner. I don't have the script tab to be able to write scripts. Please advise. thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 05:39 PM
Hi @Cuber when I checked in OOB Instance as a catalog manager i can see the UI Policy script but i cannot select catalog item because there is a reference qualifier applied on UI policy catalog item field that only catalog owner can select the catalog item now this is OOB instance,
In your instance your able to select catalog item but script section is not visible so I assume there is some customisation done, so I would advise to check with your developer team,
in short as a catalog manager you should be able to see script section .If it is not showing then there is some customisation implemented in your organisation.
Harish
