Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

List box field value needs to be changed based on button selection


Hi All,

I want to display field values in list box/multi box based on button selection. Can anyone help me out for this approach.

Regards,

Prajna

5 Replies
tresesco
MVP
MVP

May be something like attached sample?

sibin_jacob
Creator III
Creator III

Hi prajna,

You can change field values based on button click using trigger and expression in listbox. PFA the sample application and let me know if you have any questions.

Thanks,

Sibin Jacob.C

Not applicable
Author

Hi Sibin and

Not applicable
Author

create a trigger for a button to set a variable to 1 or 0 . In the expression  for list box, use an if statement to display different values. something like

=if (variable=1, Field1, Field2)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

And add the following to your button as text expression:

=if (variable=1, 'Switch to Field2', 'Switch to Field1')

Peter