One multiple choice and one text entry in 'answer'? | XM Community
Solved

One multiple choice and one text entry in 'answer'?

  • 26 November 2018
  • 1 reply
  • 41 views

Hi! I am wanting to customize a survey question's answer options such that I can have multiple choice answers as well as text entry answers. I know that it is possible to allow text to a multiple choice option, but I was wondering if there was another way to do so because it is unusual to have to select the MC answer then input the response.
For example:
Q: How old are you?
A:
-(text entry): ____ years old.
-(MC answer): I prefer not to answer

Thank you!
icon

Best answer by TomG 26 November 2018, 22:46

View original

1 reply

Userlevel 7
Badge +27
You can use a multi-select MC question and make "I prefer not to answer" exclusive. Write some JS to hide the label/button on the first choice so only the text input is visible. The first choice will automatically be selected when the respondent enters text. You can also have the JS delete the text if "I prefer not to answer" is selected.

Leave a Reply