Setting a text question response using js | XM Community
Skip to main content
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());
Hello @salimlko ,



Paste the below code in the js(onReady) of the text question



`jQuery("#"+this.questionId+" .InputText").val("Response to text question");`

Leave a Reply