Skip to content
Advertisement

How to block user from accessing other tabs in Shiny unless the user clicks a button?

My question is similar to Shiny how to block the user from accessing a tab?

But what I need here is: -Block other tabs unless the user clicks on a submit button -Automatically move to the other tab once that submit button is clicked. Here is an example code

JavaScript

In the above code, the 2nd tab is blocked unless the button is clicked, but how can I update this further so that once the button is clicked the user is automatically taken to the 2nd tab?

Advertisement

Answer

Since you put the tabPanel in a navbarPage you have to use updateNavbarPage. And you need to give the navbarPage an id.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement