Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Disable a listbox when ...

Hi guys,

I'm in trouble with a listbox.

I'd like to enable or disable a listbox when I select a field of another listbox.

For instance. I have two list box A & B.

If I select a field in listbox A, I don't want that the customer can select a field in listbox B.

Is it possible?

Thank you so much in advance.

12 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

That's the nice thing about it

In your second listbox, you put an expression that is says

"if yhere are not elements sected in the first list box, then show the field, otherwise do nothing"

Go to the second list box properties, and check the expression. It's really simple.

Not applicable
Author

I wrote this expression on my ListBox:

if ((isnull(getfieldselections(LB1, ',', 10))='-1'),LB2)

but it doesn't work like your example.

What's wrong in my expression?

Thanks a lot

Not applicable
Author

OK, Understood.

You have to insert the expression where you choice the fields of the ListBox. In the list of the Fields there is <expression>.

Thanks a lot.