Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
udaya_kumar
Specialist
Specialist

when I select a value in listbox, then it should select a particular value in other listbox

Hi,


Consider, i have a listbox with values like Fruits, Vegetables, Juice

and other listbox with values like 'Apple', 'Mango', 'Carrot', 'Cucumber', 'strawberry juice'

when i select Fruits from a 1st listbox, then it should select either Apple or Mango.

Do i need to apply trigger?

we can use field triggers, but how can we use value based triggers?

can somebody help me?

1 Solution

Accepted Solutions
udaya_kumar
Specialist
Specialist
Author

Hi everyone,


I got help from my colleague and solved this problem.

Create trigger for 1st listbox in document settings-> Triggers->1st listbox field.

Add and "Select in field" action, in field, specify 2nd listbox field name, and in search field

write an expression

=if(1st listbox field = 'Fruits','Apple')

This will set Apple as a selection in the 2nd listbox, when we click on 1st listbox.

View solution in original post

4 Replies
sreenivas
Creator III
Creator III

Is those two fields are different TAbles?

udaya_kumar
Specialist
Specialist
Author

Hi sreenivas,

those are two separate inline fields created in edit script.

jagan
Luminary Alumni
Luminary Alumni

Hi Udaya,

Can you attach the script.

Regards,

Jagan.

udaya_kumar
Specialist
Specialist
Author

Hi everyone,


I got help from my colleague and solved this problem.

Create trigger for 1st listbox in document settings-> Triggers->1st listbox field.

Add and "Select in field" action, in field, specify 2nd listbox field name, and in search field

write an expression

=if(1st listbox field = 'Fruits','Apple')

This will set Apple as a selection in the 2nd listbox, when we click on 1st listbox.