Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Mix three dropdown list together in one box (answer list to Q2 depends on Q1)

  • rquirola
  • rquirola's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 8 years 9 months ago #122353 by rquirola
Hello everyone,
I got 3 dropdown related dynamically using the javascript method that appears in this link:
www.limesurvey.org/en/forum/design-issue...q2-depends-on-q1-how

Now I need combining all 3 dropdown horizontal or vertically, because each one separately is impractical when the user need select several options. I followed the instructions in this post to try:
www.limesurvey.org/en/forum/design-issue...-together-in-one-box

but it turns out to be my 3 dropdown together no longer works the relationship A> A1> A11

I also went to an array, following these instructions: www.limesurvey.org/en/forum/can-i-do-thi...rt-text-and-dropdown , but the same thing happened, the relationship of the 3 dropdown stopped working.

Please help me with the code, I think this post will be helpful to others in the future :-)

I hope to get something like any of these options:
Attachments:
Last edit: 8 years 9 months ago by rquirola. Reason: insert image
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #122356 by DenisChenu
Hi,

For the first part : selectfilter seems to work with the last limesurvey version : demonstration.sondages.pro/index.php/565163.html
Then : you must have something other broken in your survey. Tell us "It don't work" didn't help. Look at console.log, try with just this 2 question etc ....

For the screen shot : use selectfilter and some CSS/JS to hide "question part" can help Style A.

Style C is more difficult.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • rquirola
  • rquirola's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 8 years 9 months ago #122423 by rquirola
Denis thanks for the info!
there's probably a simpler way of grouping the dropdown-list, you could tell me please how to hide (via javascript) the title of these dropdown (class = "panel-heading") and border lines (class = "panel panel-default "), to hide the "panel-heading" the instruction is "display: none", but i not know apply in JS.-

Applying these changes would look like:

Last edit: 8 years 9 months ago by rquirola. Reason: add image
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago - 8 years 9 months ago #122425 by Mazi

rquirola wrote: Denis thanks for the info!
there's probably a simpler way of grouping the dropdown-list, you could tell me please how to hide (via javascript) the title of these dropdown (class = "panel-heading") and border lines (class = "panel panel-default ")

When using jquery something like this should do the trick:
Code:
$('.panel-heading').hide();
$('.panel-default').css('border','none');

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Last edit: 8 years 9 months ago by Mazi.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose