Shiny - How not to select any option in radioButtons?

How can I not select any option in the radioButtons?

From this doc :

selected The initially selected value (if not specified, defaults to the first value)

But I don't want to select anything when the page is loaded. Is it possible?

+3


source to share


2 answers


From Documentation:

If you need to present a "None selected" state, there may be no default radio button options selected with selected = character (0). However, this is not recommended as it prevents the user from returning to this state after they have made a choice. Instead, consider c ("No selected" = "") as the first of your choices.



Hope it helps.

+1


source


In my experience, if I don't specify "Selected", most browsers just don't select anything, they don't select the first one as the document suggests.



+1


source







All Articles