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

Hi @Piyush27 ,

I didn't quite understand the situation. Can you please mention with some examples so it would be easier for me to understand.

 

Also, make sure in the UI Policy you have selected "Applies on Catalog Task" and "Applies on Requested Items" as shown in the image that I shared earlier. Also, make sure that there are no conflicting UI Policies and client scripts on those fields.

 

Regards,

Johns