How to have a text box response for one of the choices in a multiple choice question | XM Community
Skip to main content
Solved

How to have a text box response for one of the choices in a multiple choice question

  • November 21, 2021
  • 4 replies
  • 49 views

Hello,
I am writing in AdvancedFormat and I would like to make one of the choice options for a multiple choice question "Other" and have a text box next to it. Below is my sample code. Thanks in advance for your help!

[[AdvancedFormat]]
[[Question:MC]]
Which animal is your favorite?
[[Choices]]
Dogs
Cats
Fish
Other (I'd like to make this option have a text entry box)
I don't have a favorite animal

Best answer by Priyanka_Fid

No code is required for this and you can click all text entry and add text entry validation.

4 replies

MSobotta
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • November 22, 2021

image.pngEasy peasy lemon squeezy.


  • Author
  • November 23, 2021

Hi, MSobotta,
Thank you for your response. If I need to use that method after importing my AdvancedFormat code then I will. However, I was hoping that there may be a way to write the text entry box into my AdvancedFormat code so that it is included in the survey when I import my code. Do you know how I can do that?
Thanks in advance.


Priyanka_Fid
Level 2 ●●
Forum|alt.badge.img+7
  • Level 2 ●●
  • Answer
  • November 23, 2021

No code is required for this and you can click all text entry and add text entry validation.


  • Author
  • December 9, 2021

Thank you, Priyanka_Fid!