Hoping someone can help - I've spent ages searching for the answer online but can't quite find what I need!
I'm trying to create a selectizeInput that is filtered by another selectizeInput.
I have a list of schools that are in different areas, I'd like my first selectizeInput to mean that my second only brings up a list of schools in the selected area. I've copied the inputs below.
Any ideas?
selectizeInput("LASelect",
label = "Filter by Area:",
selected = "",
choices = c(ASData %>%
filter(!is.na(LA)) %>%
select(LA) %>%
unique() %>%
arrange(LA)),
multiple = FALSE),
selectizeInput("SchoolSelect",
label = "Filter by School:",
selected = "A Primary School",
choices = c(ASData %>%
filter(!is.na(School)) %>%
select(School) %>%
unique() %>%
arrange(School)),
multiple = TRUE)),