I have the code to left align my text box answers but don’t know how or where to insert the java script
Please help
I have the code to left align my text box answers but don’t know how or where to insert the java script
Please help
thank you for your help
I don’t know java script - this is the code I was given
Qualtrics.SurveyEngine.addOnload(function() {
// Replace 'QID3' with your actual Question ID
var questionId = 'QID3';
var inputs = document.querySelectorAll('#'+ questionId + ' inputotype="text"], #' + questionId + ' inputotype="number"], #' + questionId + ' textarea');
inputs.forEach(function(input) {
input.style.textAlign = 'left';
});
});
how do I insert it - do I put the whole lot in?
Qualtrics.SurveyEngine.addOnload(function() {
var questionContainer = this.getQuestionContainer();
var inputs = questionContainer.querySelectorAll('inputttype="text"], inputttype="number"], textarea');
inputs.forEach(function(input) {
input.style.textAlign = 'left';
});
});
Just replace the whole thing with the code
I WISH I COULD GIVE YOU A BIG HUG
I WISH I COULD GIVE YOU A BIG HUG
These are the types of XM Community interactions we love to see
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.