How can we set a response to a text question using JS?
Best answer by Anonymous
Hello @salimlko ,
Paste the below code in the js(onReady) of the text question
`jQuery("#"+this.questionId+" .InputText").val("Response to text question");`
I have tried using below code but it's not working.
var questionId = this.questionId;
questionID.setChoiceValue(1,z.toString());
A
Anonymous
Answer
November 6, 2018
Hello @salimlko ,
Paste the below code in the js(onReady) of the text question
`jQuery("#"+this.questionId+" .InputText").val("Response to text question");`