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: 
Reko_freed
Contributor III
Contributor III

Show border on a button only when the button is clicked

I have 3 buttons, when you click a button, a border created to that button means that button is clicked, when you click another button, the border disappears for the first one and get created for the selected button. But when I first open my app, there is already a border appears for the first button. It should not be there. Please see the image below for better understanding - 

Reko_freed_0-1668598721269.png

formula I have used in the border option , this is for first button

If( vyour_variable_name  =  1,  Black(),  '#hex_code_for_button_color' )

'#hex_code_for_button_color' - here I have used the same colour code which is used in button so it looks more natural.

Labels (2)
2 Replies
Mark_Little
Luminary
Luminary

Hi @Reko_freed 

I would assume your Variable controlling the the buttons is set to 1 on start up.

Maybe try setting it to a random value in your script? this would than change it on reload.

 

amarkow
Partner - Contributor II
Partner - Contributor II

@Mark_Little I would take it a step further and set the controller index to 0 in the load script.  In addition, due to Qlik Sense we have the ability to leverage sheet and button level actions to control the index

See the example attached.

Button Bordering.PNG

 

@Reko_freed please let me know if this is what you were looking for

 

Reload the application to set it to 0. Or just open the sheet