- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 12:33 PM
We have a Catalog Item that has (among other things), a Multiple Choice field and two Variable Sets. I want it to work so that initially, neither Variable Set is visible. Then, in the Multiple Choice field, if the first selection is made, the first Variable Set is shown (and the second is hidden). Likewise, if the second option in the Multiple Choice field is selected, I want the second Variable Set to be shown (and the first one hidden).
I tried to do this with a Catalog UI Policy, based upon the selection in my Multiple Choice field, but it did not work. I tried various ways of doing it (choosting to either make the Variable Set visible, or make it hidden), but neither way worked. How do you get this to work?
Note: Before someone suggests using Containers, and doing Catalog UI Policies on them, that option won't work for us, because within each Variable Set, there is a mix of Mandatory and Non-Mandatory fields, as well as some fields that will be hidden based on the selection of other fields (so I will need to put some Catalog UI Polcies without my Variable Sets too). We have found that Container don't work well if all the fields within them are not to be treated the same (i.e. all Mandatory).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 06:52 AM
OK, we figured it out. We had to take the "negative" approach rather than the "postitive" one to do it. So in the first Variable Set, we would need to set up the Catalog Client Script like this:
Catalog Conditions: Field A2 is NOT "Other"
Reverse if False: Checked
Catalog UI Policies Actions:
Variable Name: Field A3
Mandatory: False
Visible: False
Clear the variable value: Checked
And do likewise for the other Variable Set.
When set-up like this, it works as intended.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 01:05 PM
With your mandatory, non mandatory bits. this in your case is not possible.
1. You cannot hide a mandatory variable.
2. Containers do not need to control the form layout and can just be a grouping of variables.
3. If you want to hide these things, the variables must not be mandatory.
If you can share you variable configurations someone else can try to recreate this problem and see if they can help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 01:12 PM
Hello
Is that field mandatory by default?
i would suggest doing with a catalog client script make field mandatory/ non mandatory based no your selection.
if a field is mandatory it will never hidden. You can taken help of show variable action logger which will tell you what is going with your client side scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 01:26 PM
So, for simplicity sake, we have two similar Variable sets, which are kind of structured like this:
Variable Set 1
Field A1: Mandatory (Reference field)
Field A2: Mandatory (Multiple Choice field)
Field A3: (Single Line Text field) Visible and Mandatory if A2 is "Other". Otherwise, not Mandatory and hidden.
Variable Set 2
Field B1: Mandatory (Reference field)
Field B2: Mandatory (Multiple Choice field)
Field B3: (Single Line Text field) Visible and Mandatory if B2 is "Other". Otherwise, not Mandatory and hidden.
Catalog Item
Field 1: Mandatory (Multiple Choice field with 2 options that initially has no default value)
(note: this is an oversimplication, there really are a lot more fields, and the Variable Sets are really not this similar - this illustration just shows the challenge I am having)
So, when the Catalog Item is first opened, we only want to see Field 1, and neither variable set. Then, if option 1 is selected, it should display Variable Set one, and Fields A1 and A2 will be displayed and shown as Mandatory. When filling this out, if the "Other" option is selected in Field A2, then Field A3 should then become visible at that time, and Mandatory.
So, how would one go about setting up something like this? Can Variable Sets or Containers be used, or should everything go under the Catalog Item, with lots of Catalog UI Policies and/or Catalog Client Scripts?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 01:36 PM
Which part of your logic is breaking now?
I don't see any reason why it should not work.
One more question here what is the need to fields under a variable set, are you going to use this variable set in multiple catalogs as well?