Cursor for text boxes in side by side question is centered. How can I make it left justified? Thank you | XM Community
Skip to main content

When responding to a side by side question with a text box, the cursor is automatically centered. How can I make it left justified? Thank you in advance.

 

 

Hey @researcher1 

you can try this code. You need to replacs QID3 with your own Question ID.


 

Qualtrics.SurveyEngine.addOnload(function() {

    // Replace 'QID3' with your actual Question ID

    var questionId = 'QID3';

    

    var inputs = document.querySelectorAll('#'+ questionId + ' inputdtype="text"], #' + questionId + ' inputdtype="number"], #' + questionId + ' textarea');

    inputs.forEach(function(input) {

        input.style.textAlign = 'left';

    });

});

 


Thank you so much @RickB! Your javascript works perfectly!!!


Hello

I am new to Java script and don’t know how to insert the code above or where. I have the exact same issue with my side by side text boxes


@culka594 

you have a option under the question on the left side. At the bottem is Javascript
 

 


Leave a Reply