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

Jscript to format form boxes

  • Jul 30, 2021 8:41 PM UTC
  • 2 replies
  • 43 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"});
});

View original

2 replies

Forum|alt.badge.img+8
  • Level 2 ●●
  • Answer
  • Aug 4, 2021 8:45 AM UTC

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.