Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ZoeM
Specialist
Specialist

Grey out Button if selection is not possible

Hi Community.

I am wondering if someone can help me identify how to grey out a button if the selection is not possible/not a valid option from the data.

In the attached example, I would like to have that when a user selects Brazil, only the 'Phones' button is Blue and is selectable, and the other two buttons are grey and not selectable.

Any help rendered will be appreciated.

Thanks.

Zoe-

1 Solution

Accepted Solutions
Nicole-Smith

On each button, you want to add an expression in Enable Condition that looks like this (with Item corresponding to each button):

count({<Item={'Phones'}>}Item) > 0

capture1.JPG

capture2.JPG

capture3.JPG

I've also attached your QVW file back with these expressions entered.

View solution in original post

2 Replies
Nicole-Smith

On each button, you want to add an expression in Enable Condition that looks like this (with Item corresponding to each button):

count({<Item={'Phones'}>}Item) > 0

capture1.JPG

capture2.JPG

capture3.JPG

I've also attached your QVW file back with these expressions entered.

ZoeM
Specialist
Specialist
Author

One marble above genius! Thanks a lot Nicole and super fast response!