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

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.

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.


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


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!


Leave a Reply