Hello XM Community,
I'm wondering if there's a code that I can add in order to enable survey respondents to deselect their clicked selection when responding to the survey questions.
sajjid
Are you looking for select all / deselect all kind off button.
Have a look at this thread:
Check/Uncheck Button — Qualtrics Community
Hope this helps!
Yes, deselect specifically. And also, I'm wondering if the code can work in a matrix table. I tried the check/uncheck button code that you provided, which is working well in a multiple choice question but not working in a matrix-type question.
sajjid
Yes, it is for a multiple choice question. Within matrix are you working on multi-answer or single-answer per row?
single-answer per row
Here's a screenshot. For each row, the participant is expected to select only one of the many provided measurement scales.
sajjid
It took some time to figure out but here it is (Include in your HTML):
Hope it helps!
thanks a lot, Deepak ! It worked flawlessly. I also figured out that I need to add/edit codes if I make any changes to the choices or the measurement scales. This is awesome! Thanks a bunch!!
Here is a more flexible and concise method to reset a matrix:
Qualtrics: Reset Likert Matrix. Works with single or mult-select matrix. Add button html to question text. #qualtrics #js #jq #matrix #likert #reset
TomG , this is super nifty! thank you!!
Once again, Deepak and TomG have tag-teamed to provide a genius custom code solution! You guys went above and beyond to help sajjid
Hi! I’m trying this on a side by side question type, but it’s not working. I don’t see anywhere in the code provided by
PS - Side by side questions are annoying and I hate them.
It doesn’t work because the setChoiceValue() function doesn’t work on side-by-side questions.
Deselecting radio buttons in a side-by-side question is quite tricky. If you are interested, I have a function that does it: uncheckRadios (not compatible Simple layout)
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.