- Posts: 45
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Conditions without skipping question numbers
- Kevin
- Topic Author
- Offline
- Senior Member
Less
More
4 years 10 months ago #185867
by Kevin
Conditions without skipping question numbers was created by Kevin
Is there a way to NOT skip question numbers if you use conditions?
Question 1. Are you a boy or girl?
Question 2. Do you like blue? <- Condition: if 1 == Boy.
Question [strike]3[/strike] 2. Do you like pink? <-- Condition: if 1 == Girl.
Choosing girl in question 1 shows numbers 1 and 3 to the user. So they will think question 2 was skipped. I want it to show the number 2 regardless of the question asked.
Can it be done?
Thanks
Question 1. Are you a boy or girl?
Question 2. Do you like blue? <- Condition: if 1 == Boy.
Question [strike]3[/strike] 2. Do you like pink? <-- Condition: if 1 == Girl.
Choosing girl in question 1 shows numbers 1 and 3 to the user. So they will think question 2 was skipped. I want it to show the number 2 regardless of the question asked.
Can it be done?
Thanks
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12921
- Thank you received: 3976
4 years 10 months ago #185872
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Conditions without skipping question numbers
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, Kevin
The topic has been locked.
- tpartner
- Online
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
4 years 10 months ago #185886
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Conditions without skipping question numbers
Or simply place your own numbers in the question text.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Kevin
The topic has been locked.
- Kevin
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 0
4 years 10 months ago #185896
by Kevin
Replied by Kevin on topic Conditions without skipping question numbers
Thanks.
The topic has been locked.
- Kevin
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 0
4 years 10 months ago #185897
by Kevin
Replied by Kevin on topic Conditions without skipping question numbers
Thanks. I tried that but did not want the number to appear in the graphs (I use additional software for graphing). I decided to create two different surveys.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13642
- Thank you received: 2491
4 years 10 months ago #185904
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Conditions without skipping question numbers
Another solution can be
1. Put your desired number inside question title, and use only A,B,C for other character
2. Replace this line : github.com/LimeSurvey/LimeSurvey/blob/7a...ext_content.twig#L42
3. By {{ str_replace(["Q","A", "B","C"],["","", "",""],aQuestion.code) }}
4. Set your survey to show your code.
1. Put your desired number inside question title, and use only A,B,C for other character
2. Replace this line : github.com/LimeSurvey/LimeSurvey/blob/7a...ext_content.twig#L42
3. By {{ str_replace(["Q","A", "B","C"],["","", "",""],aQuestion.code) }}
4. Set your survey to show your code.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Kevin
The topic has been locked.