- Posts: 1
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
4 years 1 month ago #194978
by konstantin16
Jumping directly (without need to press "Next") to a specefic question was created 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
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
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 1 month ago - 4 years 1 month ago #195003
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Jumping directly (without need to press "Next") to a specefic question
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
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
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
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.Please note that I'm new to the tool and have no real experience with JavaScript, etc..
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 1 month ago - 4 years 1 month ago #195120
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Jumping directly (without need to press "Next") to a specefic question
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
Joffm
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.