Welcome to the LimeSurvey Community Forum

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

Conditional logic

  • DLundin
  • DLundin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 11 months ago - 1 year 11 months ago #235742 by DLundin
Conditional logic was created by DLundin
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.4.11+221114
Own server or LimeSurvey hosting: Own server
Survey theme/template: 
==================
Hi,

I´m new at this 

I have created a buch of question groups and questions and I am now beginning to learn how to use conditional logic in order to skip questions and jump to a question earlier in the structure.
Now I´m wondering if it´s possible to put (in an easy way) conditional logic to questions that comes after/later on in the built structure?

Thank you in advance!

/DLundin
Last edit: 1 year 11 months ago by DLundin.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #235747 by holch
Replied by holch on topic Conditional logic

Now I´m wondering if it´s possible to put (in an easy way) conditional logic to questions that comes after/later on in the built structure?


Not sure what you mean. Please give an example. Ideally have a little sample LSS to show what you are trying to do.

Limesurvey does not have "jumps". You can only show/hide questions dependent on the relevance equations / conditions.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • DLundin
  • DLundin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 11 months ago #235904 by DLundin
Replied by DLundin on topic Conditional logic
Hi, and thanks for responding.

I´ll try to be more specific. When you build the structure with question groups and underlying questions you can, depending on the answer on one question, refer/route the respondent to any other question in the structure as long as it´s located previous in the structure, if I haven´t missed something(?) See attached picture.

I´m trying to build some kind of decision tree where two questions from differnt groups refers to the same next question (and should only be answered once).

Question group 1 (IT)
- Does your project require a significant change in an IT system? (Y/N)
If 'Yes' then go to question regarding handling of personal data (GDPR).
Question group 2 (Information)
- Does your project require a significant change in how you process/handle your information? (Y/N)
If 'Yes' then go to question regarding handling of personal data (GDPR).

These two groups (and underlying questions) can function separately from one another, but they can also come in play at the same time depending on the goals of your project.

I hope that sheds some light on my problem.

If any of you smart people have an idea or tip on how to make this work I would be super happy 

Regards,
DLundin

 
Attachments:

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #235932 by holch
Replied by holch on topic Conditional logic
Nope, still not sure if you use "previous" the right way.

refer/route the respondent to any other question in the structure as long as it´s located previous in the structure, if I haven´t missed something(?)


You can only filter a question (e.g. hide it) based on the answers given to a previous question, which is logic, as you can't filter based on a question that at this point hasn't been answered yet.

However, you are using the condition designer there (your screenshot), which works for simple stuff, but I would highly recommend to switch to expression manager / script. You can write your own "conditions", which is quicker once you get the gist and it is a lot more flexible.

In any way, as I said, in Limesurvey you can not jump "back" to a previous question. You can only go forward.

So as long as the question about GDPR is located after these two questions/question groups, you can do it.

These two groups (and underlying questions) can function separately from one another, but they can also come in play at the same time depending on the goals of your project.


I am still not quite sure what the specific question / issue is here though. If you setup a little survey that just shows your problem (or you can copy your current survey and delete everything that is not necessary) and export it as LSS, we can get a better picture of what you are doing.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #236018 by Joffm
Replied by Joffm on topic Conditional logic
The only way to "jump back" to previous groups is to use the index.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DLundin

Please Log in to join the conversation.

  • DLundin
  • DLundin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 11 months ago #236037 by DLundin
Replied by DLundin on topic Conditional logic
I´ve gotten som ideas on how to get around my "problem". Thank you. I will get back to this Forum if I need further help.

DLundin

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose