Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show/Hide Button Dynamically

Hi ,

I have a requirement to do Show/Hide Button dynamically.

Suppose, I have a text box and below that we have a button. Default Button will be "Show" , while clicking show button the text box will show and automatically the button will be renamed to :Hide". When we will click on Hide the text box will hide and the Button will be renamed as "Show".

Both Show And Hide should be in a single button.

Please help.

Thanks

10 Replies
its_anandrjs

Use two buttons for this 1st for Show and

2nd for Hide and vis versa for text box and buttons

Hope this helps

Not applicable
Author

Hi Anand,

Thanks for your quick reply.

But, I want to create a single button instead of two buttons.


vikasmahajan

Refer Button from demo

The Default Button Style

Wastes A Lot Of Space

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

Chk out

Thanks,

Prabhu

Not applicable
Author

Try This.....

its_anandrjs

Create a variable vShow = 0 and use this variable in button and when click on button change its value

Hope this helps

jsingh71
Partner - Specialist
Partner - Specialist

HI,

Find Attachment, it solve your problem.

--Jai

its_anandrjs

1. Take a variable vShow = 1 set its value to 1

2. Take a button and Add a action -> Set variable -> vShow and value =if(vShow = 0,1,0).

3. In Text option for caption write =if(vShow=1,'Show','Hide')

Hope this helps

Not applicable
Author

Hi,

  Find Attachment, it solve your problem.

Only One Button while clicking show button the text box will show and automatically the button will be renamed to :Hide". When we will click on Hide the text box will hide and the Button will be renamed as "Show".

Both Show And Hide should be in a single button.