Alert Message once respondents have answered X correct responses | XM Community
Skip to main content
Solved

Alert Message once respondents have answered X correct responses

  • September 23, 2020
  • 2 replies
  • 17 views

Hi all, I have a long side by side question with one column with options Yes/No. Options are scored as 1 when correct and 0 when false. I would like to have a Pop-up/Alert message that appears on the screen once respondents have passed a certain threshold of correct answers. The message would say something like "You have passed the test, any additional corrected responses will add on as bonus points".
I am new to Javascript. does anyone know how to resolve this?
Thanks!

Best answer by rondev

You can add a click event on the options(radio button) and check if the answers are correct increment a count, if count reached passing value then use alert() to show the message.

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • September 23, 2020

You can add a click event on the options(radio button) and check if the answers are correct increment a count, if count reached passing value then use alert() to show the message.


  • Author
  • September 23, 2020

Hi rondev, thank you very much! Since I am new to Qualtrics, could please tell how you would do that exactly? how would you code that?
Thanks again!