`getChoiceAnswerValue()` does not work with Side by Side questions type | XM Community
Skip to main content

image.pngI am trying to get the values from this question type (Side by Side) using the JS API but each call the

getChoiceAnswerValue()
returns
false
. I have tried numerous param values to the getChoiceAnswerValue function.
Full Name of referral has an ID :
id="QR~QID56~1~TEXT"

Email address #1 ID:
id="QR~QID56#1~1~1~TEXT"

Phone Number ID #1:
id="QR~QID56#2~1~1~TEXT"


Qualtrics.SurveyEngine.addOnReady(function()
{
var context = this;


jQuery("").insertAfter("#"+this.questionId);

jQuery( "#next" ).click((e)=>{
var choices = context.getChoices()
for (var i = 0; i< choices.length; i++) {
console.log(i)
console.log(context.getChoiceAnswerValue(1,choices[i], 1))
console.log(context.getChoiceAnswerValue(2,choices[i], 1))
}
//.preventDefault()
})


});


Be the first to reply!

Leave a Reply