Service catalog checkbox visibility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 11:46 AM
Hi all,
I have the below requirement and need help to achieve the same. TIA
1. There is a select box with 5 options.(Option A,B,C,D,E)
2. When Option A is selected it should display 2 Mandatory Checkboxes (refer below image)
3. Requirement: Cat item should display 2 checkboxes when Option A is selected. However, when checkbox 1 is selected then Checkbox2 should disappear similarly when checkbox 2 is selected checkbox1 should disappear.
The variables I have
1. Select box
2. I created 2 separate variable sets which holds the two different checkboxes separate.
Variable set 1 - Checkbox1
Variable set 2 - Checkbox 2
3. I created a catalog ui policy to display the 2 checkboxes when option A is selected.
However need help with Point#3 Requirement
TIA
@Manmohan K @Ankur Bawiskar @Mark Roethof @Ratnakar7 @Daniel Pettet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 04:41 PM
Hi @DB1,
Try this configuration. First the CheckBox variables should start as hidden:
Then, for the three UI Policies, all of them should be set so that "Reverse if false" is true.
However, only the "Show CheckBoxes" UI Policy should have "On load" set to true.
The other two policies should have "On load" set to false.
Mimic the order as well.
Conditions for "Show CheckBoxes" UI Policy are: Select Box 1 is Option A, AND Select Box 2 is Option A, AND Select Box 3 is Option A.
The actions are:
CheckBox 1: Mandatory is true, and Visible is true.
CheckBox 2: Mandatory is true, and Visible is true.
Conditions for "When CheckBox1 is True, Hide CheckBox2" are: CheckBox 1 is true.
Action:
CheckBox 2: Mandatory is false, and Visible is false, and Clear the variable value is true.
Conditions for "When CheckBox2 is True, Hide CheckBox1" are: CheckBox 2 is true.
Action:
CheckBox 1: Mandatory is false, and Visible is false, and Clear the variable value is true.