Solved
Reset answers in matrix table
Hello,
I need to present matrix table where instructions as well as each questions (single-answer radio buttons) are based on variables previously set as embeded field. I want to repeat it many times. There are many if's and variations so I didn't choose loop&merge but made it in survey flow, which goes:
1. values are set (embeded data)
2. question X is presented with set values
3. question Y is presented with answers computed based on answers for question X
4. values are computed based on selected answers and saved as embeded data (I only need this)
5. repeat
What I didn't consider was that if I repeat the same questions X&Y, answers will be set from the first round. Is there a way to reset selected response in these questions? Thank you very much!
Best answer by PeeyushBansal
Don't use arr2 instead use like
`Qualtrics.SurveyEngine.addOnload(function()
{
var arr1=[1,2,3,4,5,6]; //rows
for(var i=0;i<arr1.length;i++)
{
var x = arr1[i];
var y = 1;
var m=2;
this.setChoiceValueByRecodeValue(x,y,false ); //to punch the answer in next matrix
this.setChoiceValueByRecodeValue(x,m,false ); //to punch the answer in next matrix
}
});`
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
