Update multiple Shiny inputs without knowing input type
Shiny allows you to update an input element only if you know the type of input. Furthermore, Shiny only allows you to update input elements one by one. This Shiny app shows how you can update an input only using its ID and without knowing its type, and how to update multiple inputs together.
updateShinyInput(session, "inputid", "new value"). You can also use
updateShinyInputs(list(...)) to update many inputs together in one call.