Check out the LimeSurvey source code on GitHub!

Multiple inline dropdown selections

5 years 10 months ago #59214 by clairem
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?

Please Log in to join the conversation.

5 years 10 months ago - 5 years 10 months ago #59236 by DenisChenu
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 5 years 10 months ago by DenisChenu.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form