Need to restrict the variables in Request Item and SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 08:23 AM - edited 10-22-2024 08:25 AM
HI All
We have the Service Catalog and contains Group Type - Create/Update/Delete
1. When i select the Create it shows only the Create related variables
2. Filled all the values clicked Order Now and RITM got created
I am seeing that Request Item contain all the variables . How to restrict? It should show only for the Create related variables not others variables
===================================================================================
I have done few client script below on the catalog items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 08:27 AM
Hi @Saib1 ,
Checked the highlighted check box to apply you client script on item as well as sc task.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 09:33 AM
@Runjay Patel - Issue that it was showing all the variables .
But my requirement it should show only the selected item in RITM and SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 08:58 PM
Hi @Saib1 ,
Change your client script to UI policy sometime client script wont work as expected. Try with one or 2 variable and see the impact. I am sure Ui Policy will help you here.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 09:56 AM - edited 10-22-2024 09:58 AM
Hi @Saib1,
Why not use Catalog UI Policies where variable visibility is set based on the Type of Request (or other parameter), and you can configure one Catalog UI Policy for the Portal View and another for the RITM/SCTask view?
This may be a cleaner approach because you'll have the Policies to update when/if you update with new Variables.
Thanks,
Josh