komlan komlan - 29 days ago 14
R Question

Multilevel in shiny input

I have, multilevel in my shiny UI input like Region, Province and school.

library(data.table)
selectInput("Region","Region",c("GOLFE","MARITIME","KARA","SAVANES"))
selectInput("Province","Province", as.character(sort(unique(dt[,Region]))))
selectInput("School","School",as.character(sort(unique(dt[,Province]))))

How can I do the link with Region -> Province -> School.
Thank

Answer

You need to do that on the server side, using the updateSelectInput function.