Alert Message for Selecting Only One Option on Multi-Select Question | XM Community
Skip to main content

Alert Message for Selecting Only One Option on Multi-Select Question

  • October 12, 2022
  • 3 replies
  • 148 views

Forum|alt.badge.img

I have a multi-select question where respondents can select any combination of 6 locations (they later order these in terms of preferences). The most popular option to select is New York City, New York.
I need an alert message to appear if the respondent selects only New York City, New York and none of the other options. This alert message would detail that New York City, New York is in high demand and that it is recommended to select other options as well. This should not prevent them from moving forward however.

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • October 12, 2022

You can use JavaScript. Each time a choice is selected, you can check how many choices are selected and if there is only 1 and it is NY, display a message somewhere on the page.


Forum|alt.badge.img
  • Author
  • October 12, 2022

Hi Tom!
Thank you for the response. Any pointers on what that javascript would look like? I'm not super familiar with that.


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • October 12, 2022

korear
A traditional alert would not work as it will still alow them to go ahead on next page you need to write JS in a manner that works real time and shows a alert. You can view this page for customized alerts.
Hope it helps!