Hi,
In my shiny app, user selects radiobutton rb1 and based on choice selectInput sl1 is activated.
fluidPage(
titlePanel("Panel 1"),
sidebarLayout(
sidebarPanel(
radioButtons("rb1", "Select:",
c("Choice 1" = "ch1",
"Choice 2" = "ch2")),
br(),
selectInput("sl1", "Select:",
c("Selection 1" = "sl2",
"Selection 2" = "sl2"), width ='60%'),
width = 4
),
When user select choice 2 in radiobutton selectinput dissappears using:
else if (input$rb1== "ch2" ) {
shinyjs::hide("sl1")
}
The problem is that when I turn to choice 1 of rb1 selectInput sl1 remains hidden.
How to solve this problem?
Regards