Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
vipingarg23
Creator
Creator

hide object with alternate state

Hi Team,

I have two listboxes named A, B. A has alternate state but B don't have. I want to show listbox A only when value in listbox B is 1.

I am using below conditional expression in layout tab but it is not working due to alternate state.

if(getfieldselections(B)=1,1,0)

Please find the sample code in attachement.

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

May be this

=Only({$} B)=1

View solution in original post

4 Replies
tresesco
MVP
MVP

What is your qv version? If you lave latest (If I remember correctly, qv 11.2 SR7+ ) versions, in the getfieldselections() you would get a parameter to pass state_name information.

Capture.JPG

vipingarg23
Creator
Creator
Author

QV12

antoniotiman
Master III
Master III

May be this

=Only({$} B)=1

vipingarg23
Creator
Creator
Author

Great..It is working fine...Thanks for your help.