I have an UI designed as shown in the picture below, and I want to actually set a condition here such that:
On selecting/checking the box "Saddle Joint" from the sidebar location
, I want the options "GEO_10500", "GEO_77298" to be chosen from the sidebar Datasets:
. Here's the server code I tried and it didn't work. Let me know how this could be achieved. Thanks!
Server.R
conditionalPanel(
condition = "input.location = 'Saddle Joint'",
updateCheckboxGroupInput(session,
"datasets",
"Datasets:",
choices=c("GEO_10500", "GEO_77298"),
selected = "GEO_10500"
)
)
Server.R
`
observe({
if ("input.location== 'Saddle Joint'") {
updateCheckboxGroupInput(session,
"datasets", "Datasets:", choices = c("GEO_15602","GEO_21537"),
selected= c("GEO_15602","GEO_21537"))
}
})
`