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

limiting the selections

Hi,

I have a list box 2010,2011,2012,2013,2014 these are records i want to limit the selections any 2 only (user restricted to select all the records) what can i do . user is able to select only any 2 values.

3 Replies
Anonymous
Not applicable

Your question is not clear,

do you mean the user is restricted to select any selection( meaning user cannot select anything) in that case, you want that user to be allowed to select only two selections?

if yes, do you have particular values, or any two values?

-Hari

Anil_Babu_Samineni

May be this?

Document Properties -> trigger -> Field Event Trigger -> Field name -> OnSelect

And then create action like select in field using FieldName and string called

=if(GetSelectedCount(FieldName)>2, '', '(*' & GetFieldSelections(FieldName,'*|*') & '*)')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful