R shiny text input control to just one word

How could I restrict the users to input just one word in the textInput field?

You could use updateTextInput (https://shiny.rstudio.com/reference/shiny/1.2.0/updateTextInput.html) to remove anything after (and including) the space.

I do not know of a way to do it natively on the textInput itself... (such as no spaces allowed)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.