I have never used JavaScript before, but this what I came up with and seemed to work fine: var edata = "${e://Field/source}"; var questionId = this.questionId; var choiceIds = [1]; if (edata == 'Source') { for (var i=0; i < choiceIds.length; i++) { var choiceID = choiceIds[i]; try { this.setChoiceValue(choiceID,true); } catch(e) { } } }
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.