Various Question Types in Form | XM Community
Skip to main content
Solved

Various Question Types in Form

  • March 20, 2018
  • 6 replies
  • 22 views

I'm using 'Text Entry' to incorporate a form at the end of a survey to collect information from participants who want to be apart of a focus group. So I'm using 'Text Entry' Question Type with a Text Type of Form. Which works great to collect their name and email address. However, we would like to have the user choose their title, organization, and Country from a pull-down list. Is there anyway to do this?

Best answer by TomG

The only way to do this is to write a JavaScript to do it. We do it with States. Basically, hide the text input and insert a <select> in its place. Add an event listener that changes the value of the text input box when something is selected.

6 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • March 20, 2018
The only way to do this is to write a JavaScript to do it. We do it with States. Basically, hide the text input and insert a <select> in its place. Add an event listener that changes the value of the text input box when something is selected.

  • Author
  • March 20, 2018
Would you want to share the code you used for the States? :)

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • March 20, 2018
> @WNewt said: > Would you want to share the code you used for the States? :) Not here. I'll send you a message.

tmcmanus
  • March 20, 2018
@TomG I would also be very interested in this code. Would you mind sharing it with me as well?

RoseL
Level 1 ●
Forum|alt.badge.img+10
  • Level 1 ●
  • March 27, 2018
@TomG - I would like to develop event registration forms and would also be very interested in this code. Is it possible to share with me as well?

Forum|alt.badge.img+10
  • Level 2 ●●
  • September 23, 2019
I am looking for a drop down dox used for States. Can you share the code with me as well?