Create a question with n open text boxes as answers | XM Community
Skip to main content
Solved

Create a question with n open text boxes as answers

  • August 27, 2018
  • 4 replies
  • 114 views

Forum|alt.badge.img+1
Hey guys! I want to have a question where there are five possible answer boxes, but that are just five open text boxes. The closest I get is the form option for the text entry where I can do that, but then the text boxes are aligned to the right because there is a pre-defined space to the left for the "names" for each text box. I placed a "space" as the name for each text box, but still have a large chunk of space (as seen below). ! Is there any simple way to take this out?

Best answer by PraDeepKotian_XM

hello @GabrielRibeiro , This thread may be helpful

4 replies

AnthonyR
Level 4 ●●●●
Forum|alt.badge.img+7
  • Level 4 ●●●●
  • 306 replies
  • August 27, 2018
Yep! Just drop this code into the addOnReady portion of the JavaScript Editor for the question you need it for and it should handle the rest! `jQuery(this.questionContainer).find('.LabelWrapper').parent().hide();`

Eesh
QPN Level 2 ●●
Forum|alt.badge.img+3
  • QPN Level 2 ●●
  • 67 replies
  • August 28, 2018
Hi Gabriel, There is another solution, if you are not familiar with Javascript. With the help of CSS. You just need to follow below steps: Step 1: Click on the left before textbox. There is little dropdown and select Rich Content Editor. As shown below. ! Step 2: Click on Source Tab at the extreme right with icon <> and add below code: !

Forum|alt.badge.img+1
  • Author
  • 28 replies
  • August 28, 2018
Thanks @AnthonyR!

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • 230 replies
  • Answer
  • August 28, 2018
hello @GabrielRibeiro , This thread may be helpful