However, this is not working. Actually, it is setting the choice based on the recorde Value instead on the Variable Name.
Can anyone help me out with this?
ThanksSolved
How to set a default choice based on Variable Name?
Hi!!!
Basically I want to set a default choice based on the answer given in the previous question and to do so I'm using the following JavaScript !
However, this is not working. Actually, it is setting the choice based on the recorde Value instead on the Variable Name.
Can anyone help me out with this?
Thanks
However, this is not working. Actually, it is setting the choice based on the recorde Value instead on the Variable Name.
Can anyone help me out with this?
ThanksBest answer by PraDeepKotian_XM
Hello @filipe ,
Below is the code for setting the default choice based on the answer given in the previous question
var val ="${q://QID30/ChoiceGroup/SelectedChoices}".split(", ");
for (var i = 0; i < val.length; i++) {
this.setChoiceValueByVariableName(val[i],true);
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

should match the variable name of this question:
!