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

TOPIC: dynamic arrays?

dynamic arrays? 5 years 9 months ago #56725

  • edortix
  • edortix's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
I need to add a question in my survey... but I guess there is no an appropiate question type for my need. What I need is an array of questions whit different question types and the ability to add new rows in a dyamic way.





is this possible? how?

thank you
Last Edit: 5 years 9 months ago by edortix.
The administrator has disabled public write access.

dynamic arrays? 5 years 9 months ago #56729

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
You cannot have these question types in an array but you can simulate it with something like this reasonably complex workaround - docs.limesurvey.org/tiki-index.php?page=...stion_types_in_array

As for the addition of rows, you would need to create all of the neccessary rows and then hide or show them with more JavaScript.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

dynamic arrays? 5 years 9 months ago #56740

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6027
  • Thank you received: 373
  • Karma: 260
Such a mixture of question types isn't possible at Limesurvey. The easiest solution is to splitt this up into several question, maybe having an initial question "How many items would you like to input" and then use conditions to show the split up questions X times.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.
Time to create page: 0.415 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form