Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to make sub-questions from a question?

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #195698 by Joffm
Replied by Joffm on topic How to make sub-questions from a question?

(list radio type:L)
Q1:Where did it happen?

A1:• In my country (link country from "place of residence" question)
A2:• In another country
add a new question:
Q2:List of countries (list dropdown type:!)(relevance if user chose "A2")
answers will be the countries names

This is the best way, without a lot of coding later.
Or you could ask the "Other country as the "open" option, where the respondent enters the country. Here you have to code later, because of different wording, and so on.

Also, do I need "Assessment value"

This is something quite different and not needed.
Read the manual about it.
By the way: Did you ever read it?

Or can I create 1 question (I must choose "multiple choice type:M"?) and then all of my tree with the "relevance" in the "quick add" button?

Sorry, but this I do not answer again


And now we wait for your prototype; then you may ask more.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 1 month ago - 4 years 1 month ago #195699 by ymca

Joffm wrote: By the way: Did you ever read it?

I read things that I think will help me fix the problem.

Joffm wrote: And now we wait for your prototype; then you may ask more.

I guess I'm a "bit" problematic from that... ;)
I'll do what I think I understood.
Thanks.

Note:
made 2 multiple choice questions.
The first was saved OK.
The second had error. Gave it numbers in condition boxes and then I was able to save.

LS Version 4.2+
Last edit: 4 years 1 month ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 1 month ago - 4 years 1 month ago #195700 by ymca

ymca wrote: Will try to add the numbers value from where they ended in the last question.

Didn't work.
Still getting the error
Code:
Object creation failed, couldn't save. ERRORS: Array ([title] => Array ([0] => question codes must be unique)

LS Version 4.2+
Last edit: 4 years 1 month ago by ymca.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #195730 by Joffm
Replied by Joffm on topic How to make sub-questions from a question?
And you see your problem

question codes must be unique)



And again something general:
A questionnaire consists of questions with answer options.
Some questions are displayed to anybody, other are displayed only if a previous question was answered in a special way.

The only thing you provided was this:
Q09:
A01: no (user who chooses this answer needs to jumps to "Q019")
A02: yes (has 4 questions)
A1: (user who chooses this answer needs to jumps to "Q010")
A2: (user who chooses this answer needs to jumps to "Q010")
A3: this answer has 4 questions (after he finishes to fill them, the survey will end for him)
Q1: this question has 15 answers
Q2: this question has 9 answers (multiple choice)
SA1:
SA2:
SA3:
SA4:
SA5:
SA6: this answer has 5 answers (multiple choice)
SA7:
SA8:
SA9:
Q3: this question has 18 answers (multiple choice)
Q4: this question has 2 answers (radio buttons)
SA11:
SA12: this answer has the same 18 answers (multiple choice) as in "Q3"
A4: this question has 2 answers (radio buttons)(after he finishes to fill them, the survey will end for him)
SA111:
SA112: this answer has the same questions and answers as in "A3"



where you always mix questions and answers.
E.g.
A02: yes (has 4 questions).
But there is no question with the answer options "A1", A2", ...

SA6: this answer has 5 answers (multiple choice)
An answer cannot have an answer. So IMO you want to display a question (with 5 answers) if the respondent selects SA6.

SA12: this answer has the same 18 answers (multiple choice) as in "Q3"

The same: SA12 is an answer option of Q4. So I think you want to display a question (with these 18 answers) if the respondent selects SA12 in Q4.

And as long as you do not provide a clean questionnaire (or this part of it) like

All respondents:
Q1. Do you like ice cream?
single question
  • yes
  • no
[hr]
If Q1=yes
Q2. Which flavour do you prefer?
single question
  • Chocolate
  • vanilla
  • strawberry
  • lemon
[hr]
If Q2==Chocolate
Q3. How many cones of this ice cream do you eat weekly?
single question
  • les than 2
  • 2-5
  • 6-10
  • more than 10
[hr]
If Q3==more than 10
Q4. What is your body mass index?
open numeric question
[hr]
if Q2==lemon or strawberry
Q5. Do you like fruit in general?
single question
  • yes
  • no
[hr]
If Q1==no
Q6. Please, tell us why you do not like ice cream?
multiple question
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Other, please specify
[hr]
All respondents
Q7. Which of these car brands have you owned during the last ten years?
multiple question
....

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 1 month ago - 4 years 1 month ago #195751 by ymca
I have been able to "fix" the collision with a workaround.
I've made some question in other groups also for order and also for avoiding problems.
Yesterday night inserted my last question into the system, and now will work on the conditions.
Then will show you the lss and word file that I'm getting the questions and order from.

p.s.
seen some problems that look like bugs and some that maybe I'm the "problem" that makes them.
I've reported a couple.

LS Version 4.2+
Last edit: 4 years 1 month ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 1 month ago - 4 years 1 month ago #195779 by ymca

ymca wrote: I have been able to "fix" the collision with a workaround.

I guess I didn't.
Now I don't see the question there.
Also want to be sure I'm talking about the right thing.
Is the question code the one at the left top corner "Q0001"?
If so then I never touch it so it must be unique.
So I must be a bug if it is unique. So I cannot add the last 2 sub-questions and I don't know what else I can do.

LS Version 4.2+
Last edit: 4 years 1 month ago by ymca.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #195781 by Joffm
Replied by Joffm on topic How to make sub-questions from a question?
Hi,
The question code is always a code you entered someday.

As far as I see this question is of type "long free text".
So where do you want to add subquestions. Only questions of type "multiple" and "array" have subquestions.

But it's all more or less useless as long as you do not attach a lss export of your survey.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 1 month ago - 4 years 1 month ago #195784 by ymca

ymca wrote:

ymca wrote: I have been able to "fix" the collision with a workaround.

I guess I didn't.
Now I don't see the question there.
Also want to be sure I'm talking about the right thing.
Is the question code the one at the left top corner "Q0001"?
If so then I never touch it so it must be unique.
So I must be a bug if it is unique. So I cannot add the last 2 sub-questions and I don't know what else I can do.
P.S.
Wait I can try one thing and see if it helps...
I have added "0" to every problematic question that didn't save its alswers and now it's saving.
"G04Q40" is now "G04Q400"...


LS Version 4.2+
Last edit: 4 years 1 month ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 1 month ago - 4 years 1 month ago #195787 by ymca

Joffm wrote: Hi,
The question code is always a code you entered someday.

As far as I see this question is of type "long free text".
So where do you want to add subquestions. Only questions of type "multiple" and "array" have subquestions.

But it's all more or less useless as long as you do not attach a lss export of your survey.

Joffm

It was just an example picture from limesurvey site so I'll know that we are talking on the same "what is a question code".
I'm 97% done and I'll attach it.

LS Version 4.2+
Last edit: 4 years 1 month ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 6 days ago - 4 years 6 days ago #197360 by ymca
The .doc shows how the order of the survey should be.

I have made groups of questions.
After a user answer a question in a group, he will see the next relevant question.
Haven't been able to make all questions act according to that.
Found this Regenerate_question_codes to make some order in the survey codes, but it deleted my conditions (The file has the conditions).


Also in the .lss I couldn't delete the last question for some reason.

LS Version 4.2+
Last edit: 4 years 6 days ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 days ago #197599 by ymca
Found out that the "Regenerate_question_codes" didn't delete all conditions.
Now giving conditions for the rest things that now I can give because of the order the "Regenerate_question_codes" did.

LS Version 4.2+
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose