I'm working on an app that requires an observeEvent for a selectInput. My issue is that when I click on the selectInput to show the drop down list, the event is not triggered.
My code is very basic, here are the snippets in question:
selectInput("label",
"Select Label:",
choices = c("select variable" = "0"),
selected = "0")
and the observeEvent:
observeEvent(input$label,
ignoreInit = TRUE,
{print("Event for model label variable selection")})
Thanks Hadley.
Yes, you are right. It was because it has a single value. I dealt with it as "onClick" type of event in other programming language
Cheers,
Is