Best answer by Anonymous
View originalSetting a text question response using js
How can we set a response to a text question using JS?
I have tried using below code but it's not working.
var questionId = this.questionId;
questionID.setChoiceValue(1,z.toString());
var questionId = this.questionId;
questionID.setChoiceValue(1,z.toString());
A
Hello @salimlko ,
Paste the below code in the js(onReady) of the text question
`jQuery("#"+this.questionId+" .InputText").val("Response to text question");`
Paste the below code in the js(onReady) of the text question
`jQuery("#"+this.questionId+" .InputText").val("Response to text question");`
Leave a Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.