Welcome, Guest
Username: Password: Remember me

TOPIC: Automatically proceed to next question (without clicking "next")

Automatically proceed to next question (without clicking "next") 1 year 6 months ago #95995

  • ahavlik
  • ahavlik's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
Hi,
I'm trying to allow my participants to to automatically move to the next question after clicking yes/no so that I may record their proper response times. I've tried to figure this out using javascript however, I don't have administrator capabilities as its through my university's website so not sure how to embed java. If anyone knows what to do/has a fix, please let me know. Thanks for your time to anyone reading this.
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 1 year 6 months ago #96016

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4358
  • Thank you received: 826
  • Karma: 381
If using a yes/no radio question, set up your survey to use JavaScript and add the following script to the source of the question.
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
 
		$('#question{QID} input.radio'),click(function() {
			if($('#movesubmitbtn').length > 0) {
				document.limesurvey.move.value = 'movesubmit';
			}
			else {
				document.limesurvey.move.value = 'movenext';
			}
			document.limesurvey.submit();
		});
	});
</script>
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.
The following user(s) said Thank You: ahavlik

Automatically proceed to next question (without clicking "next") 1 year 6 months ago #96028

  • ahavlik
  • ahavlik's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
Thanks for this!

The issue I'm having now is trying to get the admin at my university to change the global settings to allow javascript to run (which they won't do). Can you think of any non-java workarounds I might try to use? Anyway, thanks for your time.

Sincerely,
Andrew
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 1 year 6 months ago #96033

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4358
  • Thank you received: 826
  • Karma: 381
Unfortunately, I don't know of any non-JavaScript solutions.
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.

Automatically proceed to next question (without clicking "next") 9 months 4 days ago #105223

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 205
  • Thank you received: 5
  • Karma: 5
Perhaps related to this...Is there a way to auto_submit a survey?

I would like to automatically submit the survey before a session timed out if the respondent "walked away" from a live survey.

Is it possible?

David
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 9 months 3 days ago #105239

  • boyan
  • boyan's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 49
  • Thank you received: 9
  • Karma: 1
Again, you will have to use javascript.

function doSubmit() {
document.limesurvey.move2.click();
}

setTimeout("doSubmit()", #000);

# sets the number of seconds for auto submission
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 9 months 3 days ago #105253

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
HI,

Think with 2.05, it's more easy to use :
$("#defaultbtn").click();
Denis
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 9 months 3 days ago #105273

  • emimarz
  • emimarz's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Thank you received: 5
  • Karma: 1
do no exist a non-javascript solution

I tell you why

Do click is an event that occurs on the client side on the client PC

Javascript is a client-side scripting language

He is the only one that can interact with the user because HTML is too poor

:woohoo: :woohoo: :woohoo:
too much coffee

Best
Emiliano
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 8 months 6 days ago #106387

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 205
  • Thank you received: 5
  • Karma: 5
To follow up on this,

How would you program this to occur on every page of the survey?

So, if on page 3, the respondent walked away from the survey, how would you submit after 5 minutes time?
What about page 4? and so on?
The administrator has disabled public write access.

Automatically proceed to next question (without clicking "next") 8 months 6 days ago #106389

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4358
  • Thank you received: 826
  • Karma: 381
Well, auto-submitting the survey may be a little problematic because unanswered mandatory questions would prevent it and even if the submit worked it would only lead to the next survey page.

I think a better approach may be to pop up a warning after some period of inactivity and then redirect to somewhere like the root of the survey installation (the survey list page).

I'll need to give some thought to how to determine "inactivity", or more to the point, "activity" with all question types.


.
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.
Last Edit: 8 months 6 days ago by tpartner.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.220 seconds
Donation Image