I have a selectInput with all the possible choices displayed. I want to implement it such that if a user types something in the box and hits enter, that will also be added as a choice.
observeEvent(input$mykeypress, {
if(input$mykeypress == 13){
print(input$selectBox)
}
I tried the above code to see if my input changed, but it seems that no matter what extra stuff I type in the selectbox, none of it is recognized.
Anyone have ideas as to have I can recognize anything extra that the user types?
Edit: One other idea I am considering is creating a textInput, and prepopulating it with all the values that I used in my selectbox. Is something like that possible?
selectInputin the server usingrenderUI. Then you can make the choices reactive. - CarltextInputrather than aselectInput. shiny.rstudio.com/reference/shiny/latest/textInput.html - Brandon Bertelsen