Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Limit the number of items one can select in a listbox

Hi All,

I have a list box with 10 items, but I want to limit the user to be able to select only three items at any given time.  Is there a way for me to do this?

Thanks,
Carlos

7 Replies
Not applicable
Author

Carlos,

maybe 3 listoboxes with "always one selected" in alterante states?

Or trigger which checks numer of selected items ....

Not applicable
Author

Can you disable the ability to select items in a listbox through expressions?  Let's say the user has selected three items, I can have a trigger that prevents them from selecting additional items once we reach the three item threshold?

thomas_skariah
Creator III
Creator III

Hi Carlos,

If possible you can try this in your listbox->properties->general->Field -go to expression and add =if(GetSelectedCount(<Your Column Name)>3,'No Data to Show',<Your Column Name>)

Regards,

Tom

Not applicable
Author

Carlos,

How many items do you have in this field?

21-05-2014 04:35 użytkownik "Carlos Fernandez" <qcwebmaster@qlik.com>

napisał:

Qlik Community <http://community.qlik.com/> Limit the number of

items one can select in a listbox

reply from Carlos Fernandez<http://community.qlik.com/people/cfernand77?et=watches.email.thread>in *App

Development* - View the full discussion<http://community.qlik.com/message/532358?et=watches.email.thread#532358>

tresesco
MVP
MVP

May be like attached sample ?

Not applicable
Author

I have 10 items and only want the users to select a maximum of 3 items at a time.

Not applicable
Author

And all combinations are allowed?

21-05-2014 16:45 użytkownik "Carlos Fernandez" <qcwebmaster@qlik.com>

napisał:

Qlik Community <http://community.qlik.com/> Limit the number of

items one can select in a listbox

reply from Carlos Fernandez<http://community.qlik.com/people/cfernand77?et=watches.email.thread>in *App

Development* - View the full discussion<http://community.qlik.com/message/533035?et=watches.email.thread#533035>