How to have free text and radio button response on the same question? | XM Community
Skip to main content
Question

How to have free text and radio button response on the same question?

  • February 15, 2021
  • 3 replies
  • 598 views

Hi there,
I'm looking for a workaround to have free text (numeric) and a radio button on the same question.
E.g. ask respondents what year they graduated, but also have a 'can't remember' option to select.
I have found that you can do this with multiple choice question, making one response allow text, but you have to select the radio button to enter the text (see attached image). Ideally, respondents should just be able to directly enter text without first having to select the radio button.
Thanks for your help!
Capture.PNG

3 replies

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • February 15, 2021

hi HannahG
I think if respondent directly enter the value in textbox than radio button is get selected else you can juts hide the radio button labels by adding below code.

jQuery("[id='QID1-1-label']").hide();

Note: replace the radio button label id value.


  • Author
  • February 15, 2021

Thank you PraDeepKotian_Ugam, that sounds like it will work. Can you please let me know how to find the id value?


PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • February 15, 2021