How to deactivate a button from the navigation bar

0
Hi all, In our app we have navigation bar buttons that, when clicked on, lead to a page. When this button is clicked the button becomes active and turns blue. However, from that page you can also go to another page. In this new page we woud like the button in the navigation bar to deactivate because we are in a new page and the blue color is confusing. Right now the only way to deactivate the button is refresh the page or click on another button in the navigation bar. Does anyone know how to solve this problem?  Thanks in advance!
asked
2 answers
0

image.png

can try this.

answered
0

Seems a bit hackish, but you could call a nanoflow in which you open your new page and call a javascript action to simulate click something that does nothing (e.g. the body element), deactivating the button:

document.getElementsByTagName('body')[0].click();

Or put this line as javascript in an htmlSnippet in your layout. There should be something better though.

answered