Create a question with n open text boxes as answers | XM Community
Solved

Create a question with n open text boxes as answers

  • 28 August 2018
  • 4 replies
  • 36 views

Badge +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?
icon

Best answer by PraDeepKotian_Ugam 28 August 2018, 04:27

View original

4 replies

Userlevel 7
Badge +7
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();`
Userlevel 4
Badge +3
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:

!
Badge +1
Thanks @AnthonyR!
Userlevel 6
Badge +21
hello @GabrielRibeiro ,
This thread may be helpful

Leave a Reply