Welcome to the LimeSurvey Community Forum

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

Conditions without skipping question numbers

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 4 months ago #185867 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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #185872 by Joffm
Hi,
why do you show the numbers?
Just hide them.



Joffm

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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #185886 by tpartner
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
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 4 months ago #185896 by Kevin
Thanks.
The topic has been locked.
  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 4 months ago #185897 by Kevin
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 4 months ago #185904 by DenisChenu
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.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: Kevin
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose