I am wondering if it is possible to have a conditional panel in another conditional panel.
For example, if I have a drop-down list with two options: 1 and 2
Choice 1 will display one set of parameters, and Choice 2 will display another set of parameters.
But is it possible to have a conditional panel nested in this conditional panel so that I can have another drop-down list inside the inputs for option 1.
Here is an example of the code I'm trying to do, but this does not work.
selectInput("n", label = h3("Select Option"), choices = list("1" = 1, "2" = 2), selected = 1), #1 conditionalPanel( condition = "input.n == '1'", titlePanel("1 Options"), selectInput("b", label = h4("Select Option"), choices = list("A" = 1, "B" = 2), conditionalPanel( condition = "input.b == '1'", titlePanel("1 Options") ), conditionalPanel( condition = "input.b == '2'", titlePanel("2 Options") ), )),
source share