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

Move text entry to the right with multiple choice

  • 13 May 2020
  • 4 replies
  • 186 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.

icon

Best answer by TomG 13 May 2020, 14:53

View original

4 replies

Userlevel 7
Badge +27

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

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

Userlevel 7
Badge +26

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

Userlevel 7
Badge +27

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.

Leave a Reply