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: 
Anonymous
Not applicable

Trigger select / not select

Hi guys,

I have a field "Categories" with 3 tags

"Unhappy"

"Neutral"

"Satisfied"

I'd like to create 3 text boxes for each categories with action , when I click once -> select 1 categories. Click again deselect it.

How is better to do?

Create 6 boxes: 3 to select and 3 deselect with show conditions

Or others tricks?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I created 3 variables for each "Categories"(vSatisfied,vNeutral, vDislike)

Add action Select in Field for "categories' and add set variable vSatisfied=1 others =0

And in text box expression added

=IF(vSatisfied=1 , 'C:\Users\Pictures\c_praise (2).png','C:\UsersPictures\c_count (2).png') and so on for each image

changed for image display

View solution in original post

7 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

In your text boxes, you can set them to do the 'Toggle Select' Action. Set the field name to Categories, and Search String to one of the tags.

Marcus

Qrishna
Master
Master

Its All about the BUTTONS.

please check out the link where i have posted a document on creating actions on text boxes.

Also see attached FYI.

hope that helps.

richard_chilvers
Specialist
Specialist

It may be useful to have a button (or several) which toggle between selections.

If you search for toggle on this forum, you may find some useful discussions already.

HTH

Anonymous
Not applicable
Author

the final version of my selection is

I have 3 images with counts for each "Categories". When I select one of them, this image should be the same, others images should be changes.

How you suggest to do it? I didn't use QV a long ago. Maybe there is new tricks.

Anonymous
Not applicable
Author

I created 3 variables for each "Categories"(vSatisfied,vNeutral, vDislike)

Add action Select in Field for "categories' and add set variable vSatisfied=1 others =0

And in text box expression added

=IF(vSatisfied=1 , 'C:\Users\Pictures\c_praise (2).png','C:\UsersPictures\c_count (2).png') and so on for each image

changed for image display

jafari_ervin
Creator III
Creator III

Hi Vladimir

You can use select in field action with conditional search string.

Please see the attachment.

Anonymous
Not applicable
Author

Thanks, that works perfect. But it doesn't show visually what is selected. That's why I switched to change background images. (easy to use background color, mockup was done with images)

Selected image should be bright, other images should be gray.