Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Can I use conditions to determine how many rows in an array?

Can I use conditions to determine how many rows in an array? 1 Jahr 7 Monate her #90644

  • avimagic
  • avimagics Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 1
  • Karma: 0
I'm a newbie, and so far loving this software!

What I would like to do for my first survey is collect information about children in a particular family.

So the first question is, "How many children are in your family?" This is a simple dropdown in which all of the options are integers.

For the next question, I'd like it to be an array that collects specific information about each child (gender, age, etc.).

Can I set up a condition that tells the array to have exactly the number of rows specified in question 1?

Thanks!!!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Can I use conditions to determine how many rows in an array? 1 Jahr 7 Monate her #90653

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4139
  • Dank erhalten: 767
  • Karma: 348
Unfortunately you cannot use conditions to hide/show sub-questions (array rows).

You could:

1) Use JavaScript to show the appropriate number of array row as the dropdown is changed.

2) Use separate questions for each child and hide/show them with conditions. You could apply a little CSS to make the separate questions appear to be one.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.142 Sekunden
Donation Image