- Posts: 12
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
List of answers (free text) and use input in array?
- joost1982
- Topic Author
- Offline
- New Member
Less
More
7 years 4 months ago #143615
by joost1982
List of answers (free text) and use input in array? was created by joost1982
Hi there,
Is it possible to ask for a list of answers and use those answers in an array on the next page?
Something like this:
Question 1: Give a list of possible solutions:
- ......
- ......
- ......
- ......
- ......
- ......
- ......
- ......
Let's say the user gives three solutions.
Question 2: How often do you implement this solution? (1,2,3,4 or 5 times a week)
Solutions and array 1, 2, 3, 4, 5
- Solution 1 -- 1 2 3 4 5
- Solution 2 -- 1 2 3 4 5
- Solution 3 -- 1 2 3 4 5
(instead of "solution 1" I want the exact solution text from the previous question)
I know I can use an "array filter" to use answers from previous answers, but I do not get it working with "free text", only with "precoded" answers/text.
Is it possible to ask for a list of answers and use those answers in an array on the next page?
Something like this:
Question 1: Give a list of possible solutions:
- ......
- ......
- ......
- ......
- ......
- ......
- ......
- ......
Let's say the user gives three solutions.
Question 2: How often do you implement this solution? (1,2,3,4 or 5 times a week)
Solutions and array 1, 2, 3, 4, 5
- Solution 1 -- 1 2 3 4 5
- Solution 2 -- 1 2 3 4 5
- Solution 3 -- 1 2 3 4 5
(instead of "solution 1" I want the exact solution text from the previous question)
I know I can use an "array filter" to use answers from previous answers, but I do not get it working with "free text", only with "precoded" answers/text.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
7 years 4 months ago #143622
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic List of answers (free text) and use input in array?
Hi, joost,
I did it this way.
1. You have your list question (multiple short answers)
2. In the subquestions of the second question insert the following
a. question text {L1_SQ001}, (L1 question code of list, SQ001 code of sub question)
b. relevance L1_SQ001!='' (not empty)
see screenshots
Best regards
Joffm
I did it this way.
1. You have your list question (multiple short answers)
2. In the subquestions of the second question insert the following
a. question text {L1_SQ001}, (L1 question code of list, SQ001 code of sub question)
b. relevance L1_SQ001!='' (not empty)
see screenshots
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- joost1982
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
7 years 4 months ago #143649
by joost1982
Replied by joost1982 on topic List of answers (free text) and use input in array?
Brilliant this will work!
The topic has been locked.