UI Policy on Catalog Variable Set

vijir
Mega Guru

Hello,

For one of our forms, we want to display a set of fields based on the quantity of the line item (max is 15). example: If quantity is '1', show one section only consisting of 8 fields. if quantity is '2', show two sections consisting for 2*8 fields.

For this we created 15 variable sets and wrote 15 UI policies to display the section based on the respective quantity selected in the form. But the UI policies are not working on variable sets. is this a limitation in the tool or does it work?

Regards,

Viji

1 ACCEPTED SOLUTION

Hi Vijir,

>But now, i have added UI policy actions for each variables inside the set (variable_set_1>>variable_name1). but these variable sets are always visible irrespective of what the condition is set in UI policy. Is it because i have used the same variable names in each variable set?

If your variable set names are different/unique then it doesn't matter even if you have similar variable names across different variable sets.

>I have 15 variable sets - i duplicated (variable set duplicator) the variable set 14 times. And trying to show up the corresponding number of variable sets based on the quantity selected in the form. example: If quantity is 5, show 5 variable sets. It does not work as expected. 'Reverse if false' is set to true in UI policies.

For this case, your UI policy should have condition like "Quantity is 1", Reverse if false is "true" and in the UI policy action section you should add an entry like "variableset_1" visible is "true".

If it still doesn't work probably you can provide me a screenshot of your catalog UI policy. I'll try to figure out the issue. Note: You can also use onload/onchange client script to achieve this requirement, if you feel ui policies are behaving strange.

Regards,

Udhay

View solution in original post

5 REPLIES 5

i see i was using the 3 line configure UI policy on the catalog item and not  the catalog UI policy.