Jscript to format form boxes | XM Community
Skip to main content
Solved

Jscript to format form boxes

  • July 30, 2021
  • 2 replies
  • 32 views

Forum|alt.badge.img

Does anyone know the Jscript needed to move the form essay boxes to be below the form label?

Best answer by ChiragK

Hello, Try adding this JS code in form field question.
Qualtrics.SurveyEngine.addOnReady(function () {
    var $this = jQuery(this.questionContainer);
    jQuery(".QuestionBody td.ControlContainer", $this).css({"float": "left", "width": "100%"}).closest("tr").css({"display": "block", "margin-top": "15px"});
});

2 replies

Forum|alt.badge.img+8
  • Level 2 ●●
  • Answer
  • August 4, 2021

Hello, Try adding this JS code in form field question.
Qualtrics.SurveyEngine.addOnReady(function () {
    var $this = jQuery(this.questionContainer);
    jQuery(".QuestionBody td.ControlContainer", $this).css({"float": "left", "width": "100%"}).closest("tr").css({"display": "block", "margin-top": "15px"});
});


Forum|alt.badge.img

Thank you so much. This is exactly what I needed.