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

More
4 years 9 months ago #90644 by avimagic
avimagic created the topic: Can I use conditions to determine how many rows in an array?
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!!!

Please Log in to join the conversation.

More
4 years 9 months ago #90653 by tpartner
tpartner replied the topic: Can I use conditions to determine how many rows in an array?
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now