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

How to Hide a button object if there are no selcetions in list Box.

I have a list box called as year, and a button called as Clear All Selection. So this Button should be hidden unless and until the user have selected something in the list box.

So if user have not selected anything the Button should be Hidden, how should It work?

3 Replies
rupamjyotidas
Specialist
Specialist

Use GetfieldSelections() function or GetSelectedCount()

vishsaggi
Champion III
Champion III

Using Rupam expression try below:

In you button properties -> Layout tab -> Conditional ->add this expression

= IF(GetSelectedCount(year)>0, 1,0)

rajeshqvd
Creator II
Creator II

=If(GetSelectedcount(Year)>0,1,)