Solved
Default choice for drill down question using embedded data

Is it possible to set default choice(s) for a drill down question using embedded data? I've done it for a multiple choice question using the following JS:
if("${e://Field/myfield}" == "Yes") this.setChoiceValue(1,true);
if("${e://Field/myfield}" == "No") this.setChoiceValue(2,true);
How do I adapt this for a drill down question (with four levels of drill down)?
Best answer by TomG
Yes, you can refer to each of drop downs based on their index:
```
var selects = jQuery("#"+this.questionId+" select");
selects.eq(0).val("2"); //Set first select value to 2
selects.eq(1).val("1"); //Set second select value to 1
```
View originalLeave a Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.