Variable showing, depending on another variable

mjakobsen
Kilo Contributor

Hi,

What I want is to have a variable with multiple choice. If you choose option 1, variable 2 becomes available. if you choose option 2, variable 3 becomes available.

Before you have selected anything in variable 1, non of the other variables should be visible.

Is this possible to achieve?

When searching for variable depending on other variables I only find information about showing different variable VALUES, not showing different variables in the first place.

Anyone?   (PS: I haven't worked anything with scripts in SN so far, so if scripting is required, please be detailed)

Best regards,

Magnus

1 ACCEPTED SOLUTION

Sampath8
Giga Expert

Hi Magnus,



To achieve this you need to follow the below steps:


1. Create a Variable with two choices.


Capture1.PNG


Also make sure that 'Do not select the first choice' check box is checked on the variable 1.


Capture4.PNG


2. You need to Write a UI policy as shown in the below screenshot with the conditions.


Capture2.PNG


3. Write another UI policy with the conditions mentioned in the below screenshot.



Capture3.PNG



Hope this helps you!




Regards,


Sampath.


View solution in original post

3 REPLIES 3

lakshmidurga
Tera Expert

Hi Magnus,



You can write an UI Policy for this



Under condition put Variable is Option1


Under UI actions Varaible 2 is Visibile.



similarly you can do it for other choices.



Thanks


Lakshmi Vallisetty


Sampath8
Giga Expert

Hi Magnus,



To achieve this you need to follow the below steps:


1. Create a Variable with two choices.


Capture1.PNG


Also make sure that 'Do not select the first choice' check box is checked on the variable 1.


Capture4.PNG


2. You need to Write a UI policy as shown in the below screenshot with the conditions.


Capture2.PNG


3. Write another UI policy with the conditions mentioned in the below screenshot.



Capture3.PNG



Hope this helps you!




Regards,


Sampath.


mjakobsen
Kilo Contributor

Thanks a lot for super fast and accurate description