Form question that also contains a dropdown question | XM Community
Skip to main content

Form question that also contains a dropdown question

  • December 3, 2024
  • 2 replies
  • 55 views

Forum|alt.badge.img+2

I have a demographic question and I want the state to be a 50 state drop down.  Can someone help me with this?

 

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • December 3, 2024

You might be interested in this.

If not, I think there are some previous Community posts on this subject.


Forum|alt.badge.img+16

Here is something I tried previously with a multiple-choice question type that has 10 test options and referencing some threads with Getting Started | Select2 - The jQuery replacement for select boxes

The tag portion in the JavaScript below is in case you wish to have survey takers enter something outside of the options available.

Qualtrics.SurveyEngine.addOnReady(function()
{
    jQuery("#"+this.questionId+" select").select2({
    width: 'resolve',
	width: '50%',
	tags: true});
});

I do not know JavaScript well, so I wouldn’t be able to help edit but I hope the example helps.


Leave a Reply