- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 11:41 PM
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
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 08:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2018 11:48 PM
Hi,
I hope you have mean 'Catalog UI Policies'. In that case make sure you have added the variable set to your catalog item and try below steps,
1. Under UI Policy Action Related lists click on new
2. In the 'Variable Name' field, select the variable set name followed by variable name. Eg: variable_set_1>>variable_name1
3. Then set the necessary action Mandatory,Visible/Read-Only based on your requirement.
Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.
Regards,
Udhay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 07:27 PM
Hi Udhay,
Thanks for your response.
Yes, I created Catalog UI policies and created UI policy actions for each variable set only without creating the UI actions for nested variables. I wanted to reduce the number of UI Policy actions used.
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?
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.
Regards,
Viji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 08:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2018 06:52 PM
Thanks Udhay. We will use client scripts.