How to add "text entry" to the question and not an answer choice? | XM Community
Skip to main content
Solved

How to add "text entry" to the question and not an answer choice?


Forum|alt.badge.img

I am trying to recreate this question and need a text entry box as one of the answer choices and not as a text entry for a specific answer choice.
How sat.png
Hope somemone can help.

Note: I do not wish to create a separate "Text Entry" question as there are 17 questions like this already.

Best answer by ahmedA

There you go. You'll need to create an embedded variable for each question. See the survey flow to see the format.
Mohammadt.qsf

View original

10 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • March 29, 2021

This is not possible via the default functionality. You'll need some level of HTML/JS programming to get it done.
However, since you already have these questions in the survey, just copy them and change the text.


Forum|alt.badge.img
  • Author
  • 12 replies
  • March 31, 2021

https://www.qualtrics.com/community/discussion/comment/36152#Comment_36152"However, since you already have these questions in the survey, just copy them and change the text."
I didn't understand this part


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • March 31, 2021

You mentioned that you already have questions like these:
image.png


Forum|alt.badge.img
  • Author
  • 12 replies
  • March 31, 2021

How do I do the HTML/JS thing to get it done? I'm not an expert in JS or HTML


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • Answer
  • March 31, 2021

There you go. You'll need to create an embedded variable for each question. See the survey flow to see the format.
Mohammadt.qsf


Forum|alt.badge.img
  • Author
  • 12 replies
  • March 31, 2021

OMG! Thank you so very much! That's exactly what I needed. I'll ask you more if I come across other problems. Thanks again man!


Forum|alt.badge.img
  • Author
  • 12 replies
  • April 14, 2021

https://www.qualtrics.com/community/discussion/comment/36218#Comment_36218Thank you for this JS code.
Today I wanted to analyse the responses but I do not see a single "Comment" in the comment section. Is it possible it did not work in saving their comments?


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • April 15, 2021

You'll need to create an embedded variable for each question. See the survey flow to see the format.


Forum|alt.badge.img
  • Author
  • 12 replies
  • April 15, 2021

https://www.qualtrics.com/community/discussion/comment/36586#Comment_36586Sorry, I do not understand what you are talking about.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • April 15, 2021

Since the comments field is being added via JS, if you want to see what's entered in them, you'll need to create an embedded variable for every question where you are doing so.
In the attached QSF, see the survey flow. Before the comments question is asked, an embedded variable is defined in the format of QIDxx_Comments. So, if you've got 40 questions like this, you'll need to define 40 embedded variables, with the same format.
So it may be like QID7_comments, QID45_comments, QID132_comments etc.
The QID varies for each question. Read up the support pages to find it.
In the attached QSF, because the id of the question is QID1, you see that the embedded variable is QID1_comments.


Leave a Reply