Service Now Catalog variables visibility only in task not on form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 12:29 PM
How to make sure that the service catalog variables are visible only on the task but not on the form while a user is requesting a request ? For eg I don't want the department part to come up while filling my form , but when I create my request task in that I can populate the department variable ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 08:25 PM - edited 03-20-2024 08:26 PM
Hi @aagnihotri
This can be achieved with UI Policy or Client script.
You have to hide variable and select apply on catalog item view 'checkbox'
refer below article which discusses the similar requiremen:
please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 09:26 PM
You can hide that variable using hidden checkbox and you can create a ui policy to show only on catalog task.
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 09:30 PM
hi how can i show on ui policy as its asks to give a condition ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 10:05 PM
@aagnihotri , If you Want to show Certain Variables on Cat Task , then Create Seperate UI policy And under Applies to Select only on Item level and leave other two options empty
PS : Why I’m Suggesting separate UI policy because you might have different ui policy actions in the same UI policy which you want to show them on Item level so not to make conflict have asked to create Seperate UI policy
Also Ensure you give proper Condition on UI policy !!
Let me know if you need any Further Information!!
Regards,
Shyamkumar
Regards,
Shyamkumar