Hi,
Im not able to change the multiple
argument in a selectizeInput
(FALSE per default) back to TRUE from the server part of the app. I use the updateSelectizeInput
function with the corresponding option parameter to achive the change.
(I need to set the server
parameter to TRUE by the way - if set to FALSE, everything works as expected)
Here is a code example:
library(shiny)
ui <- fluidPage(
selectizeInput(
inputId = "name",
label = "Select Name:",
choices = NULL
)
)
server <- function(input, output, session) {
updateSelectizeInput(
inputId = "name",
choices = c("Markus", "Lisa", "Peter"),
options = list(maxItems = 10),
server = TRUE # set consciously, I have a big list to handle
)
}
shinyApp(ui, server)
I found a similar question here. Unfortunately it was closed without an answer.
Setting the multiple parameter in the ui part don“t helps me, because I want to decide about the argument in the server-part.