Incorrect value returned by radio button. | XM Community
Skip to main content

I have 7 radio button on my survey.  Values 1 to 7 in Recode values and advanced scoring.

They all return the correct value except for the second one.  It returns 8 and not 2.

Where is this value 8 coming from?

The ID of the button is QR~QID5~1~8, it should be QR~QID5~1~2?

Anyone had this before?

That could have happened if that choice was created last, then moved into the second position.


Thank you Mathew. 

In the results we have a column SC0 which contains the correct value of the radio buttons selected.

Can this be access by JavaScript in Qualtrics.SurveyEngine.addOnPageSubmit when the survey ends?

 


Thank you Mathew. 

In the results we have a column SC0 which contains the correct value of the radio buttons selected.

Can this be access by JavaScript in Qualtrics.SurveyEngine.addOnPageSubmit when the survey ends?

 

Yes, get the recode value of the selected radio button:

Qualtrics.SurveyEngine.addOnPageSubmit(function() {
var recode = this.getChoiceRecodeValue(this.getSelectedChoices()s0]);
});

  


I have implemented the above code 

var recode = this.getChoiceRecodeValue(this.getSelectedChoices())0]);

But I only get a 1 or a 2.  There are 2 rows of radio buttons.  How do I get the Recode value, 1 to 7?  The recode values are correct in the survey.


I have implemented the above code 

var recode = this.getChoiceRecodeValue(this.getSelectedChoices())0]);

But I only get a 1 or a 2.  There are 2 rows of radio buttons.  How do I get the Recode value, 1 to 7?  The recode values are correct in the survey.

What type of question is it?  The code is for a single select multiple choice.


Leave a Reply