Wordcloud replace space between words in Survey Flow | XM Community
Skip to main content

Hi! I have a form question with 3 fields where respondents are supposed to write 3 associations with a brand. The goal is to visualize this as a Wordcloud in a CX Dashboard.

In the Survey Flow I merge the results from this page, otherwise the Wordcloud widget won't let me display them in 1 cloud.

My issue is that the Wordcloud widgets only accepts single words, so in this case it displays “Not” and “fast” separatedly.

Is there a way to replace the empty spaces between words with e.g. a hyphen within the Survey Flow?

 

There is another post with this issue, but no solution:

can we do word cloud widget of CX dashboard with the words which has space in it? | XM Community (qualtrics.com)

Perhaps something like this:

Qualtrics.SurveyEngine.addOnload(function() {
var associations = "${q://QID1/ChoiceGroup/SelectedChoices}";
var formattedAssociations = associations.replace(/ /g, '-');
Qualtrics.SurveyEngine.setEmbeddedData('formatted_associations', formattedAssociations);
});

Couldn't get it so work yet though


Leave a Reply