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
  • BHS_Kez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #189428 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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago - 4 years 5 months ago #189429 by Joffm
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:

File Attachment:

File Name: limesurvey...8934.lss
File Size:34 KB


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 5 months ago by Joffm.
The topic has been locked.
  • BHS_Kez
  • BHS_Kez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #189430 by BHS_Kez
@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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #189434 by Joffm
It's included in the example survey.
Subquestion relevance.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #189448 by holch

which I'm not very good with

So I guess it is time to get better in it. ;-)

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.

Lime-years ahead

Online-surveys for every purse and purpose