- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 02:27 PM
Hi All,
we have a requirement to create 3 variables in MVRS, Category, sub category and quantity. When a category is selected, only the sub categories associated to that category should be displayed. How can we achieve this?
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 03:39 PM
Depending on the number of options and how dynamic you need your options to be, you can script it, or you can use a table driven approach as Sachin suggests and outlines. The one thing that I would add is that, if you want to use a table driven approach without a custom table, you can load your options in the sys_choice table and set the reference on your lookup select box that table. It's more or less made for this type of option / dependent value format.
For example, I made these sys_choices:
Then two lookup select boxes on my mrvs: (be sure to make note of the variable attributes and reference qualifiers
And this is what I get...
I hope this helps!
If this was helpful, or correct, please be kind and mark the answer appropriately.
Michael Jones - Proud member of the GlideFast Consulting Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 09:05 AM
Thanks
Can you tell me whats the reference qualifier Sub Category.
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 09:14 AM
Sure, I used:
javascript:"element=mrvs_sub^dependent_value=" + current.variables.category
With a variable Attribute of:
ref_qual_elements=category
That way, when you change the value for category values for current are passed back to the server and the reference qualifier is re-processed.
I hope this helps!
If this was helpful, or correct, please be kind and mark the answer appropriately.
Michael Jones - Proud member of the GlideFast Consulting Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 03:13 AM
Hi Michael,
The solution is good but causes issues when creating client scripts or ui policies. How did you get around the issue?
Because these variables are now looking at the sys_choice table when creating one of the above, it only shows the first 1000 records which is from a to e. If your choices do not start with a,b,c,d or e then it cannot be selected in ui policy and cannot be found when creating script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 01:57 AM