Welcome, Guest
Username: Password: Remember me

TOPIC: Skipping a bunch of questions

Skipping a bunch of questions 3 years 2 months ago #65636

  • plbt5
  • plbt5's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
LS applies a question-oriented routing as opposed to an answer-oriented one. This is very convenient unless one wants to skip a bunch of questions: When e.g. one wants to jump from question 1 to the final question 125, all other questions in between need to carry the same identical condition :ohmy: , e.g. show only if Q1 equals 'yes'.
Is there a way around this? Or formulated differently: can you skip an arbitrary group of questions by only specifying the condition once?

I do apologize if this turns out to be a typical RTFM situation :blush: (which I did but couldn't find an answer)
Last Edit: 3 years 2 months ago by plbt5. Reason: Changed title into better suiting one
The administrator has disabled public write access.

Re: Skipping a bunch of questions 3 years 2 months ago #65637

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
The challenge with that situation is coping with the "Previous" button. Although JavaScript could be written to tell the survey to conditionally move to the last question, it would be error-prone to write JavaScript to manage trying to jump back.

Personally, I think a better solution is to make it easy to associate the same conditions or relevance with a large number of questions. In LimeSurvey 1.92, all conditions, even the most complex, can be represented as Relevance, which is one database field per question. This would make it easy to copy that value for a large set of questions. In the past, I developed surveys in Excel, and could just use the pull-down feature in Excel to copy the Relevance to as many rows (questions) as needed. I'm hoping that LimeSurvey 1.92 can make it similarly easy to set and modify conditions/relevance.
The administrator has disabled public write access.

Re: Skipping a bunch of questions 3 years 2 months ago #65680

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4358
  • Thank you received: 826
  • Karma: 381
You can use JavaScript to jump to a page/group as long as it's not the last one in the survey (because for various reasons it needs to be accessable by a "Previous" button). Something like:
<script type="text/javascript" charset="utf-8">
 
	function jump(jumpStep) {
 
		$('#thisstep').val(jumpStep + 1);
		document.limesurvey.move.value = 'moveprev'; 
		$('#limesurvey').submit();
	}
 
	jump(125);
 
</script>

I have also accomplished jumping back by storing the originating survey step in persistent data and using he same code.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Skipping a bunch of questions 3 years 2 months ago #65685

  • dbrd
  • dbrd's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Thank you received: 2
  • Karma: 1
plbt5 wrote:
LS applies a question-oriented routing as opposed to an answer-oriented one. This is very convenient unless one wants to skip a bunch of questions: When e.g. one wants to jump from question 1 to the final question 125, all other questions in between need to carry the same identical condition :ohmy: , e.g. show only if Q1 equals 'yes'.
Is there a way around this? Or formulated differently: can you skip an arbitrary group of questions by only specifying the condition once?
)

Actually, skipping a bunch of questions by applying identical conditions is easy, and I use it all the time. The respondents in my surveys see the either the first half of the questions, or they are presented the second half of questions depending upon their answer to the first question: Location.

To skip to the last question based upon the answer to the first question, apply the desired condition to the second question. Then click the Copy Conditions icon on the same page and you will be able to check mark all the following questions you wish that to apply to. Click on the select all, then uncheck the last question. Click apply. Done, simple
The administrator has disabled public write access.

Re: Skipping a bunch of questions 3 years 2 months ago #65858

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
plbt5 wrote:
I do apologize if this turns out to be a typical RTFM situation :blush: (which I did but couldn't find an answer)
Yes, a typical RTFM issue ;-)
Link 1
AND
Link 2

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
Last Edit: 3 years 2 months ago by Mazi.
The administrator has disabled public write access.

Re: Skipping a bunch of questions 1 year 11 months ago #89195

  • frenyo
  • frenyo's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hmmm . . . .

How could I use the above code to have the "End URL" text element ultimately take the user to a specific group of questions? How do I know whet number a group should be referenced by? Where is the javascript code placed to be callable by the "End URL" and how does one call a js function there?

I would like to use this approach - the only one I found on the forum which *may* work for this - to be able to direct a user to pass the welcome screen and be returned to the first group of questions, when filling out the survey again, immediately after a previuos completion. Might there be a better (easier/more effective) way of accomplishing it?

Kind Regrads.
The administrator has disabled public write access.

Re: Skipping a bunch of questions 1 year 11 months ago #89196

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4358
  • Thank you received: 826
  • Karma: 381
How could I use the above code to have the "End URL" text element ultimately take the user to a specific group of questions?
This is not possible. This code is designed to be executed from within a question or group.
Where is the javascript code placed to be callable by the "End URL" and how does one call a js function there?
You cannot execute JavaScript with the end URL. If you want code executed on the end page, place it in the source of the end message.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Skipping a bunch of questions 1 year 11 months ago #89198

  • frenyo
  • frenyo's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
thank you. will try.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.138 seconds
Donation Image