Create a question with n open text boxes as answers | XM Community
Skip to main content
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?
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();`
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:



!
Thanks @AnthonyR!
hello @GabrielRibeiro ,

This thread may be helpful

Leave a Reply