Welcome to the LimeSurvey Community Forum

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

Jumping directly (without need to press "Next") to a specefic question

  • konstantin16
  • konstantin16's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #194978 by konstantin16
Hello,

I have a simple survey with 19 questions. I want to make it possible that when the participant clicks on a specific answer, he is directly forwarded to another question (e.g. when the user selects Answer 1 on question 11 he jumps to question 17). I've read dozens of similar topics, but most of them are 6-7 years old and i can't make them work( www.limesurvey.org/forum/can-i-do-this-w...sections-in-a-survey or www.limesurvey.org/forum/can-i-do-this-w...rent-question-groups ).

Is there a simple solution to achieve this? Please note that I'm new to the tool and have no real experience with JavaScript, etc..

Best regards,
Konstantin
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #195003 by Joffm
These old topics mainly were about jumping around, back and forth.

In your case: You only want to skip some questions.

All questions after "internet" until "region" get the relevance equation : internet_SQ001!="Y".

Would be better you revise your design.
If you create a group for the people who "nutzen Internet im Geschäftsalltag" you just set the group relevance accordingly.
The group concept is a bit different than your used grouping "Einleitung", "Hauptteil", "Schluss".
You should use it to manage the flow of the questionnaire.

Joffm

Please note that I'm new to the tool and have no real experience with JavaScript, etc..

This is not necessary at all. Nearly anybody here knows that I can't write one line of code in javascript. But I am good at finding solutions with the built-in features.
And if you are new to LS, the first is to read the manual, at least raw.
And to study the sample surveys.
manual.limesurvey.org/Expression_Manager_sample_surveys

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The following user(s) said Thank You: DenisChenu, tpartner
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #195120 by Joffm
To refer to "without need to press 'Next'":
This only works in single punch radio questions (not in your multiple question), but maybe it is helpful.

Enter this into your question text
Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
 
    $('#question{QID} input:radio[id^="answer"]').on('click', function(e) {
      $('#ls-button-submit').trigger('click');
    });
  });
</script>

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose