Qlik Community

Qlik Education Discussions

Discussion Board for collaboration related to Qlik Education.

help4qv123
Contributor II

Restrict listbox selection

Hi Friends,
I have a requirement , In list box by pressing ctrl we can select multiple values. So i want a restriction as user can select max up to 2 by pressing ctrl.

1 Solution

Accepted Solutions

Re: Restrict listbox selection

You can do something like this:

=If(GetSelectedCount(myField)>2, 'Error', myField)

but you will see the text "Error" only when you release the CTRL button

2 Replies

Re: Restrict listbox selection

You can do something like this:

=If(GetSelectedCount(myField)>2, 'Error', myField)

but you will see the text "Error" only when you release the CTRL button

help4qv123
Contributor II

Re: Restrict listbox selection

Ya Good...But I can see error mesg any other option....

Community Browser