I have a question about changing the number of questions based on a users input. Specifically, say a user answers 5 to a question, how would i then display 5 input boxes for the user to enter their input into.
Example:
Q How many cars do you have?
User enters 2
What is the brand of car 1?
What is the brand of car 2?
Example 2:
Q How many cars do you have?
User enters 4
What is the brand of car 1?
What is the brand of car 2?
What is the brand of car 3?
What is the brand of car 4?
Yep, i've tried that but the real functionality I was wondering about was if i could change the amount of sub questions that was asked based on the user input. For example if a user enters 5 then 5 sub questions would be generated and if they say 2 then two sub questions would be generated.
Exactly as Tpartner describes. You need to create a certain number of subquestions and hide/show them via subquestion relevance, based on the number of questions they enter.
There is no way to dynamically add subquestions. You need to create them first and hide/show them according to need.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.