Clear selected answers in question when reloading (reset button) | Experience Community
Skip to main content
Solved

Clear selected answers in question when reloading (reset button)

  • Sep 14, 2024 2:09 PM UTC
  • 3 replies
  • 160 views

Forum|alt.badge.img+2

Hi,

 

I want to reset the data entered in a matrix question because it might be that the respondent selects an option in a matrix table that they did not want to select and then they can’t unselect… 

 

Solution 1 (if possible): Is there a way to have a reset button? 

 

Solution 2 (backup solution): If not, I wanted to just use javascript to reload the question but then when it reloads it still has the previous answers selected.. how can I clear the answers to a question when the page is reloaded? 

 

Thank you so much for your help!

Ben

Best answer by rondev

To reset the selection upon page reload, custom JavaScript is usually required. However, an alternative solution without using JS is to opt for a multi-select (checkbox) matrix question, setting the scale points to mutually exclusive. This behaves like a single-select option but also allows respondents to uncheck their selections if needed.

View original

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • Sep 14, 2024 2:14 PM UTC

To reset the selection upon page reload, custom JavaScript is usually required. However, an alternative solution without using JS is to opt for a multi-select (checkbox) matrix question, setting the scale points to mutually exclusive. This behaves like a single-select option but also allows respondents to uncheck their selections if needed.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • Sep 16, 2024 7:21 AM UTC

Thank you! How do I set the scale points to be mutually exclusive? 


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • Sep 16, 2024 7:27 AM UTC

Sorry found it now :-) This works, thank you!