Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple inline dropdown selections

Multiple inline dropdown selections 3 years 5 months ago #59214

  • clairem
  • clairem's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
I'm new to limesurvey and I'm in the middle of designing my first survey. I'm generally fairly good with computers and I've used javascript before, but I'm struggling right now.

I need to create a question that has two inline dropdown lists, so it's like a "fill in the blanks" sentence with specific answers. I've posted the layout I want below. The labels for each dropdown should be identical

question text [dropdown] question text [dropdown] question text.


I've tried fiddling around with the source code and hunting through the workarounds, but I'm coming up empty right now. Any suggestions?
The administrator has disabled public write access.

Re: Multiple inline dropdown selections 3 years 5 months ago #59236

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6334
  • Thank you received: 818
  • Karma: 243
Its just an idea,

Add a Text display question with some <span id="foranswerSXGXQ"></span>.

Add the 2 question with the select box.

The select box are identified with SGQA S = survey, G = group, Q = Question.

For the example : survey 1 , group 1, question 1 and 2 (and add the 2 span according to the id)

Hide the question block with some css.
#questionQ1, #questionQ2 {position:absolute;top:-9999em;left:-9999em}

And the javascript
$('select#answer1X1X1').appendTo('#foranswer1X1X1');
$('select#answer1X1X2').appendTo('#foranswer1X1X2');
Last Edit: 3 years 5 months ago by DenisChenu.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.155 seconds
Donation Image