What is the best question type to use in this situation? | XM Community
Solved

What is the best question type to use in this situation?

  • 13 March 2018
  • 6 replies
  • 199 views

Userlevel 6
Badge +5
I need a question to display every country in the world and allow respondents to select all of the countries they have visited. I have not found a question type that can accommodate this in a user-friendly way. Any suggestions?

Currently I have it set up as a Multi Select Box, but you need to hold control to select multiple items and it is not easy to deselect when scrolling through the list.
icon

Best answer by TomG 13 March 2018, 11:31

View original

6 replies

Userlevel 1
Could you use a map (image) with the 'hot-spot'/heat map type of question?

Alternatively, could you ask a first question about what continents they have visited, and then ask individual follow up questions for which countries they have visited in each continent..? This would at least reduce the number of countries they need to select at each question.

You could even break it up a bit more using the drill-down question format - e.g. have East Africa, West Africa, Sub-Saharan Africa, etc, and then only the relevant companies will show up...

Hope some of those ideas help...?

John
Userlevel 7
Badge +27
You could integrate select2 (see "Multi-select boxes" on the page referenced).
Userlevel 6
Badge +5
Thank you both for the replys! Tom, that is exactly what I am looking for!

I am a novice when it comes to Javascript. Would both of those pieces of Javascript be pasted into the question? I would just want the full list of countries displayed in there without the categories.
Userlevel 7
Badge +27
You would leave your question as you have it now (a multi-select box with all the countries). First, you would add the select2 script and css to your survey. Then you would add JavaScript to the question to find the multi-select box using jQuery then attach select2 to it with whatever options you need. It would be something like:
```
jQuery("#"+this.questionId).find('select:first').select2({options});
```
Userlevel 6
Badge +5
Hi Tom,

It is saying Select2 is not a function. Is there a specific link to reference it?
Userlevel 7
Badge +27
@uhrxx005 - I sent you a message.

Leave a Reply