Variable visibility based on drop down selection

Piyush27
Tera Contributor

Hi,

 

I am looking for a solution for the below scenario-

 

When the number of containers is selected as 1, 2, or 3 specific variables should be visible as per the table below. I have tried with UI policy and also tried with catalog client script but not working. Behaving weird variable visibility is not working as expected.

 

Number of ContainersDrop Down1
2
3
   
   
If Select 1Visible & MandatoryA
B
C
If Select 2Visible & MandatoryA
B
C
D
E
F
If Select 3Visible & MandatoryA
B
C
D
E
F
G
H
I

 

Regards,

Piyush Kumar

1 ACCEPTED SOLUTION

Johns Marokky
Tera Guru

Hi @Piyush27 ,

it's all based on the condition you choose in the UI Policy. I had created an example for your reference. You can follow that and I think it will definitely fix the issues.

Create 3 Catalog UI Policies as below. You can take it as an example and work on it for your scenario.

General Availability for 1,2,3:

Screenshot 2023-01-27 at 12.55.39 PM.png

General Availability 2 and 3:

Screenshot 2023-01-27 at 12.57.03 PM.png

General Availability 3:

Screenshot 2023-01-27 at 12.58.19 PM.png

 I have attached the output also for your reference (See attached Screenshots).

 

Mark Helpful and Accept as a solution if it helps in Solving your issue.

 

Regards,

Johns

View solution in original post

5 REPLIES 5

Kirby R
Kilo Sage

Can you share your catalog client script?

Sonu Parab
Mega Sage
Mega Sage

Hi @Piyush27 ,
To achieve above requirement create  four UI Policies as below.
1] In first UI Policy hide all the variable A to I.

Sonu_Parab_0-1674804302417.pngSonu_Parab_1-1674804323684.png


2] Create 2nd UI Policy for Select 1 option.

Sonu_Parab_2-1674804422854.png

Sonu_Parab_3-1674804444598.png

 

3] Create 3rd UI Policy for Select 2 option.

Sonu_Parab_4-1674804500126.png

Sonu_Parab_5-1674804514311.png

 

4] Create 4th UI Policy for Select 3 option.

Sonu_Parab_6-1674804577543.png

 

Sonu_Parab_7-1674804596801.png



If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thank you

 

 

 

 

 

 

Johns Marokky
Tera Guru

Hi @Piyush27 ,

it's all based on the condition you choose in the UI Policy. I had created an example for your reference. You can follow that and I think it will definitely fix the issues.

Create 3 Catalog UI Policies as below. You can take it as an example and work on it for your scenario.

General Availability for 1,2,3:

Screenshot 2023-01-27 at 12.55.39 PM.png

General Availability 2 and 3:

Screenshot 2023-01-27 at 12.57.03 PM.png

General Availability 3:

Screenshot 2023-01-27 at 12.58.19 PM.png

 I have attached the output also for your reference (See attached Screenshots).

 

Mark Helpful and Accept as a solution if it helps in Solving your issue.

 

Regards,

Johns

Hi @Johns Marokky 

 

It worked for one condition but I forget to mention that this select box and the variables will be common for 4 different flows so every time I fill the form at the end I will see this container drop-down box.

 

I did it for other variable flows now it conflicts with others and on RITM and TASK levels the variables disappear. At the portal, it works fine though.

 

The order of other UI Policy is different