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?
I ended up figuring it out, because the selectizeInput just wraps around selectize.js, in your selectizeInput you can use the argument: options = list(create = TRUE), and the user can add words easily.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With