Move text entry to the right with multiple choice | XM Community
Skip to main content
Solved

Move text entry to the right with multiple choice

  • May 13, 2020
  • 4 replies
  • 481 views

Hi,
I have problem. I have 3 answers to chose in my multiple question. When participant chose the last question, he should write somethin in the text entry.
My problem is that text entry shows on the bottom of all questions and I want it to the right of answer:
image.png
I tried to change it by this code in HTML:

and shows like this and cut all of the grey in questions and it looks bad
image.png
Have you got some idea how can I fixed and it looks nicely and on the right of question?
I tried some JavaScripts also but it didn't work.
Also tried Old Editor but it didn't work.

Best answer by TomG

Use the following and change the width (100% forces it to wrap to next line):
https://gist.github.com/marketinview/03dc80fe52623c8df6ae1f42edaba44e

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • May 13, 2020

Use the following and change the width (100% forces it to wrap to next line):
https://gist.github.com/marketinview/03dc80fe52623c8df6ae1f42edaba44e


  • Author
  • May 13, 2020

Wow, thanks! I add it to Javascript and it works!


JoycaV
QPN Level 4 ●●●●
Forum|alt.badge.img+27
  • QPN Level 4 ●●●●
  • October 4, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/25309#Comment_25309Hi TomG,
How would the code need to change when using the "Classic" layout? I'm also displaying choices in 3 columns. I'd like the text entry box to appear inside of the choice box, as currently it is messing up the layout of my first column.
image.png


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • October 4, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/50347#Comment_50347Offhand, I don't know. I haven't used the 'column' setting in years because it isn't mobile friendly. I use mcColumns instead. Then I use mcTextEntry to move text inputs inside the choice buttons (it performs a number of other functions too). I regularly use the combination with Classic layout.