Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Multiple inline dropdown selections

Multiple inline dropdown selections 5 years 8 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.

Multiple inline dropdown selections 5 years 8 months ago #59236

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9580
  • Thank you received: 1374
  • Karma: 390
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');
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
Last Edit: 5 years 8 months ago by DenisChenu.
The administrator has disabled public write access.
Time to create page: 0.356 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form