-
DescriptionIs it possible to add a button to deselect a choice for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I already know this is going to be difficult to implement, because we're relying on Shiny for our input widgets, which don't be default have this functionality to my knowledge. We'd have to come up with some way for a user to click some additional button that "resets" the question or something, which is an odd behavior. It seems this is also not possible on other platforms like Qualtrics. I wonder if the solution might just be to include a "none" option as one of the choices, that way if the user clicks accidentally, they can select the "none" option to avoid responding to something that they didn't intend? |
Beta Was this translation helpful? Give feedback.
Okay, that's what I was guessing you would do. Just have an additional button that pops up that allows you to deselect. I was thinking you were asking if there was some existing Shiny widget that had this already built in.
So this is something we could consider adding internal support for, but I'm worried it would create a lot of clutter on the screen. I haven't seen this kind of feature in most surveys either, so I'm leaning towards not yet supporting it natively in the package and leaving it to the user to add themselves, which you could do by adding calls to
uiOutput()in your survey.qmd and usingrenderUIlike you have in this example in your server function in the app.R file. There m…