Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

code for show and hide

Hi,

Please share code for show and hide

8 Replies
oknotsen
Master III
Master III

Go to the Layout tab of any object, find the "show" part (right side, middle), switch to "Conditional" and put an expression in that field that results in either a "true" or a "false".

May you live in interesting times!
maxgro
MVP
MVP

see attachment

create a variable (mine is v)

add a button with action

1.png

add some objects (2 listbox in image) with show conditional in layout tab depending on variable

2.png

gautik92
Specialist III
Specialist III

Have a look at this

Not applicable
Author

Not applicable
Author

Chanty4u
MVP
MVP

HirisH_V7
Master
Master

Hi ,

Like this,

  1. Create a variable like -> vShow=0
  2. Then for your list box->Lay out-> Show -> conditional -> If(vShow=1,0,1)
  3. Then create a button for triggering between SHOW and HIDE,

            Crate Button->General text -> =If(vShow=1,'Show','Hide')

                                ->Actions-> External Set Variable -> vShow ->VALUE as =If(vShow=1,0,1)

Then by clicking this button you can show hide your list box object .Same way for other objects too.

Hope this helps,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”