- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I show only answers from previous array in new array with new options?
- BHS_Kez
- Topic Author
- Offline
- New Member
Less
More
4 years 6 months ago #189428
by BHS_Kez
Can I show only answers from previous array in new array with new options? was created by BHS_Kez
To explain further, I have two questions in a group, the 1st question has a long list in an array where they can only select 5 answers
I want only the answers selected in Q1 to appear within the array in the 2nd question
How do I do this? Please bear in mind that I am extremely new to LimeSurvey and have no coding experience, so any answers that requires VBA or coding speak will need to be dumb'd down a decent amount
In regards to the images there are more answers in the list but the screen clip couldn't go down that far.
Thank you in advance for your help.
I want only the answers selected in Q1 to appear within the array in the 2nd question
How do I do this? Please bear in mind that I am extremely new to LimeSurvey and have no coding experience, so any answers that requires VBA or coding speak will need to be dumb'd down a decent amount
In regards to the images there are more answers in the list but the screen clip couldn't go down that far.
Thank you in advance for your help.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12922
- Thank you received: 3977
4 years 6 months ago - 4 years 6 months ago #189429
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can I show only answers from previous array in new array with new options?
Hi,
what kind of array is the first one. "Normal" array or array(columns)?
What do you do if somebody selects a sixth option? How do you validate this?
You cannot remove a click in a radio button?
And why do you use an array in the second question? Here a simple multiple question is sufficient.
Therefore I recommend an array(numbers) with checkbox layout. This is easy to validate.
And also display the questions on two pages. In case of an error and the responsnet clicks "Next" you will run into problems.
1. Wrong: One subquestion -> two options
2. Wrong: Two subquestions -> same option
3. Correct
And the following question
And an example:
Joffm
P.S. Why do people always say, that they have no coding experience?
These tools - like LS - are made that you just click your survey.
Of course, after having read the manual and studied the example surveys.
what kind of array is the first one. "Normal" array or array(columns)?
What do you do if somebody selects a sixth option? How do you validate this?
You cannot remove a click in a radio button?
And why do you use an array in the second question? Here a simple multiple question is sufficient.
Therefore I recommend an array(numbers) with checkbox layout. This is easy to validate.
And also display the questions on two pages. In case of an error and the responsnet clicks "Next" you will run into problems.
1. Wrong: One subquestion -> two options
2. Wrong: Two subquestions -> same option
3. Correct
And the following question
And an example:
Joffm
P.S. Why do people always say, that they have no coding experience?
These tools - like LS - are made that you just click your survey.
Of course, after having read the manual and studied the example surveys.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 6 months ago by Joffm.
The topic has been locked.
- BHS_Kez
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 6 months ago #189430
by BHS_Kez
Replied by BHS_Kez on topic Can I show only answers from previous array in new array with new options?
@joffm
Thank you for your reply.
I was using a normal array for the 1st question but your suggestions of changing it to array numbers with check box and changing the 2nd question to multiple choice is better. I will do that.
In regards to how I make it so that the 2nd question only shows the choices made within the 1st question, you didn't show how to do that?
Many thanks,
BHS_Kez
Ps. I mentioned about my lack of knowledge within LS for coding etc because I have noticed (and needed to use) some rules for questions that required me to type 'if, not, and, or' kind of logic which I'm not very good with.
Thank you for your reply.
I was using a normal array for the 1st question but your suggestions of changing it to array numbers with check box and changing the 2nd question to multiple choice is better. I will do that.
In regards to how I make it so that the 2nd question only shows the choices made within the 1st question, you didn't show how to do that?
Many thanks,
BHS_Kez
Ps. I mentioned about my lack of knowledge within LS for coding etc because I have noticed (and needed to use) some rules for questions that required me to type 'if, not, and, or' kind of logic which I'm not very good with.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12922
- Thank you received: 3977
4 years 6 months ago #189434
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can I show only answers from previous array in new array with new options?
It's included in the example survey.
Subquestion relevance.
Joffm
Subquestion relevance.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
4 years 6 months ago #189448
by holch
Seriously, writing simple equation questions is not rocket science. It looks scary at the beginning, but once you got into it, you will learn quickly. It is worth it, because it will extend the possibilities of LS quite a bit.
I recommend to have a look at the pages in the manual that talk about the expression manager. There are many examples, also as LSS which you can download and see how they were set up.
I recommend not only to read, but also to try the examples yourself, by creating something similar. This way you will learn a lot and quite quick.
Once you understood it, you will be able to create a lot of stuff with Limesurvey.
Just don't be scared. When playing around, you can't do any damage. The maximum that can happen is that it doesn't work. That's about it.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can I show only answers from previous array in new array with new options?
So I guess it is time to get better in it.which I'm not very good with
Seriously, writing simple equation questions is not rocket science. It looks scary at the beginning, but once you got into it, you will learn quickly. It is worth it, because it will extend the possibilities of LS quite a bit.
I recommend to have a look at the pages in the manual that talk about the expression manager. There are many examples, also as LSS which you can download and see how they were set up.
I recommend not only to read, but also to try the examples yourself, by creating something similar. This way you will learn a lot and quite quick.
Once you understood it, you will be able to create a lot of stuff with Limesurvey.
Just don't be scared. When playing around, you can't do any damage. The maximum that can happen is that it doesn't work. That's about it.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: Joffm
The topic has been locked.