How to display dependent catalog Variable based on another Select Box Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello Community,
Many threads went through for making dependent variable based on another variable.
Our requirement is 2 Select Box BoxA and BoxB. Both has many values.
How can I make BoxB certain values selectable when specific BoxA selected.
Clientscript is the last option any alternative ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @Nisha30 ,
Option 1 :
If Box A and Box B are both Choice type fields, you can link them directly through their dictionary configurations.
- Right-click Box B and select Configure Dictionary.
- Find the Dependent Field tab (or section).
- Check the Use dependent field checkbox.
- Select Box A as the dependent field.
- Save the record.
- Scroll down to the Choices related list.
- For each choice in Box B, double-click the Dependent value column and enter the exact Value (not Label) of the corresponding Box A choice.
Option 2 :
If Box A and Box B are Reference fields pointing to other tables, you should use an Advanced Reference Qualifier.
- Right-click Box B and select Configure Dictionary.
- Set the Use reference qualifier dropdown to Advanced.
- In the Reference qual field, enter a reference filter that references Box A's current value:
javascript:'u_box_a_reference_field=' + current.variables.box_a_variable_name;
Option 3 :
Otherwise, Client script is the last option.
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You,
Sujit Jadhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
39m ago
Both Fields are 'Select Box'
and
we have many choices against specific Value from BoxA.
I know client script will work but customer is looking if there is simple way other than Scripting.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
46m ago
Hi @Nisha30
Creating Dependent Variables in Service Catalog? H... - ServiceNow Community
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784512
To do your requirement when both variables are Select Boxes, can you change their Type to Lookup Select Box.