Reduce Question Space | XM Community
Skip to main content
Question

Reduce Question Space

  • November 2, 2023
  • 2 replies
  • 48 views

Forum|alt.badge.img+5

Hi Everyone

I am using this Java code in the 2nd question (text entry), to reduce the question space highlighted in red.

Qualtrics.SurveyEngine.addOnload(function()
{

jQuery("#"+this.questionId+" .InputText").attr("placeholder", "Please provide detailed feedback.");
jQuery('.QuestionText').eq(1).css('display','none');
jQuery('.Separator').css('display','none');

I have also hidden the question text highlighted in red text using HTML.

<span style="visibility:hidden;">test</span>

How can I reduce this gap further?

Thanks :)

2 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1096 replies
  • November 2, 2023

@parkie_0007 You can add this to the 1st question

Qualtrics.SurveyEngine.addOnload(function()
{
jQuery('.QuestionOuter').css('padding-bottom','0px');

});

 


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1096 replies
  • November 2, 2023

@parkie_0007 Additionally this custom CSS will get rid of the extra padding, you can also use #QID…. for specific target

.Skin .QuestionBody {
padding-bottom: 0px!important;
}