- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:43 AM
Hi Team ,
Catalog Build
When ever user selects [ Request Category >> Production access ] , Then short desp and Descp field should be not visible .
NOTE :- Short descp and descp fields coming from the variable set .
Can anyone please help me here ,
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 01:00 AM
@nameisnani , You can Write on Change Client Script on Request Category and use below script
var access = g_form.getValue('request_category) // replace with correct variable name
if(acess=='production access'){
g_form.setMandatory('variablename', false);
g_form.setVisible('variablename', false);
}
Regards,
Shyamkumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:57 AM
not from Chat GPT, internal Servicenow tool build based on Servicenow KB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:53 AM
Great observation 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:50 AM
Hi @nameisnani you can use UI Policy to make short description and description visible
Ui Policy condition:
Request Category IS Production access
Ui Policy action
variables as part of variable set will be visible here. It will display as (variablesetname-->variable)
select short description set visible to true
select description set visible to true
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 01:02 AM
Hi @nameisnani it doesnt matter it's variable set or variables, variables would still display when you create a UI Policy as usual and apply on catalog item,
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 12:51 AM
Hi @nameisnani ,
Create Catalog UI Policy to hide those variables on your variable set. Keep in mind that this UI Policy will work on other catalog items as well if variable set is used on other catalog items , so kindly build a condition.
Please mark helpful/correct if my response helped you.