I would like to update the selectizeInput
using the selected values s_l
based on the condition input.c_l_check=='y'
ShinyUi <- fluidPage(
sidebarLayout(
sidebarPanel(
checkboxGroupInput('s_l', 'D to show:', levels(data$D), selected = levels(data$D)),
radioButtons("c_l_check", "D to colour:", list("Yes"='y', "No"='n'), selected = 'n'),
conditionalPanel( condition = "input.c_l_check=='y'",
selectizeInput( inputId = "c_l", label = "D to color:", multiple = T, choices = NULL))
...
))
ShinyServer <- function(input, output, session) {
# Updating selectize input
updateSelectizeInput(session, 'c_l', choices = 'input$s_l', server = TRUE)
...
}
# Run the application
shinyApp(ui = ShinyUi, server = ShinyServer)
However, it is updating using the input$s_l
rather than its values.