Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to disable remaining buttons when any one of them is clicked?

Hi,

I have attached a file in which there are four buttons. Initially all these are buttons are not in clicked state, such that the user can click any button as they wish. My requirement is when an user clicks any one of those buttons, the remaining unclicked buttons should be disabled. Is that possible?

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Vinoth,

You can do the same using only three variables. I have attached a sample for better understanding.

View solution in original post

7 Replies
kumarkp412
Creator II
Creator II

Hi Vinoth,

Can you explain your requirement more,

As of my understanding, Initially all buttons are in disable mode but what basis it need to be enabled when you make a selection of a button?

or

We can make this like

when the user makes a selection on any one of the buttons, remaining button will be in disable mode but the disable button will also selectable. for that just we are changing the color combination on it.

Thanks

Kumar

Not applicable
Author

In my requirement I have buttons like "last 24 hours", "last 7 days" , "last 15 days" and "last 1 month". So, If I click last 15 days buttons to see the data for last 15 days, then I should not be able to select the other three buttons. Like wise if I click last 1 month, I should not be able to select other buttons. Thats it.

tresesco
MVP
MVP

Like in attached sample?

pokassov
Specialist
Specialist

Hi there,

1. Add four variables: vBut1, vBut2, vBut3, vBut4 and set up them with 1 value.

2. Add four "Text Objects" and set Layer for them top. and set them transparent.

3. Move "Text Object" over buttons and resize them to fill your buttons.

4. add for "Text Objects" property "Show": =vBut1 for button1, =vBut2 for button2...

5. Add 3 actions for each button, for example for first button:

Action.External.Set Variable:

Variable: vBut2

Value: 0

Variable: vBut3

Value: 0

Variable: vBut4

Value: 0

So that If you choose one button the others became hidded beneaf "text objects"

Best regards.

dsharmaqv
Creator III
Creator III

Hi You can set variables on the action tab for each buttons.

tamilarasu
Champion
Champion

Hi Vinoth,

You can do the same using only three variables. I have attached a sample for better understanding.

ngulliver
Partner - Specialist III
Partner - Specialist III

There's a blog Steve Dark wrote on buttons some time ago.

Have a look at :

QlikView

https://www.quickintelligence.co.uk/qlikview-buttons/

QlikSense

https://www.quickintelligence.co.uk/toggle-buttons-qlik-sense/