How to create a list integrating alters of 3 different Name Generetors | Experience Community
Skip to main content
Question

How to create a list integrating alters of 3 different Name Generetors

  • May 17, 2026
  • 0 replies
  • 4 views

Hi, I am new on the platform !

 

Here’s my issue:

 

I have been meaning to investigate characteristics of alters from 3 different NG (up to 75 alters). Despite the 3 different NG, they belong to the same group and need to be randomized - i therefore can’t use carry forward which is limited to one question.

My intuition is that I could create a list with  embeded data to then piped it in my follow up questions.

However, I have been strugling with this task and using insert of java scripts (below for my NG). The names do not appear

The other only other solution I can think of is to list every single alter with a display logic preventing empty response - but it seems very artisanal.

 

I think the friendly universe offers an outcome similar to what I want but it seems rather technical to modify  at my current level.

 

Any insight would be appreciated ^^

 

“Qualtrics.SurveyEngine.addOnPageSubmit(function() {
    var qid = this.questionId;
    var boxes = this.getQuestionContainer().querySelectorAll('input[type="text"]');
    var names = [];
    
    boxes.forEach(function(b) {
        if (b.value && b.value.trim() !== "" && b.value !== "Selected") {
            names.push(b.value.trim());
        }
    });
    
    Qualtrics.SurveyEngine.setEmbeddedData(qid + '_names', JSON.stringify(names));
});”