Formatting Form Questions | XM Community
Solved

Formatting Form Questions


Badge

Hello!
Is there a way to format the form choice text?

  • Increase padding between choice

  • Increase choice container width

Thanks!

icon

Best answer by rondev 2 June 2020, 07:29

View original

3 replies

Userlevel 7
Badge +22

Use the below code:
//Increase padding between choice
jQuery(".ChoiceStructure table").attr("cellspacing","30");

//Increase choice container width. This will give 50% width to choice text and another 50% to input text box
jQuery(".ChoiceStructure table td").not(".ControlContainer").css("width","50%");

Badge

Amazing thank you!
https://www.qualtrics.com/community/discussion/comment/26030#Comment_26030Two follow up questions:

  • Is there a way to remove the little gap between the edge of the question and the question text?

  • Is there a way to increase the height of the row (padding within the row, not just between the rows)?

Many thanks!

Userlevel 7
Badge +22

Is there a way to increase the height of the row (padding within the row, not just between the rows)? -> try the below code
jQuery(".ChoiceStructure table td").not(".ControlContainer").css("line-height", "1.5em");

Leave a Reply