Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

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

Automatically proceed to next question (without clicking "next") 1 Jahr 3 Monate her #95995

  • ahavlik
  • ahavliks Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 6
  • Dank erhalten: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 1 Jahr 3 Monate her #96016

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4139
  • Dank erhalten: 767
  • Karma: 348
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: ahavlik

Automatically proceed to next question (without clicking "next") 1 Jahr 3 Monate her #96028

  • ahavlik
  • ahavliks Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 6
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 1 Jahr 3 Monate her #96033

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4139
  • Dank erhalten: 767
  • Karma: 348
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 6 Monate 2 Wochen her #105223

  • dweisser
  • dweissers Avatar
  • OFFLINE
  • Bronze Donor
  • Beiträge: 203
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 6 Monate 2 Wochen her #105239

  • boyan
  • boyans Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 49
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 6 Monate 1 Woche her #105253

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6276
  • Dank erhalten: 801
  • Karma: 241
HI,

Think with 2.05, it's more easy to use :
$("#defaultbtn").click();
Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 6 Monate 1 Woche her #105273

  • emimarz
  • emimarzs Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 21
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 5 Monate 2 Wochen her #106387

  • dweisser
  • dweissers Avatar
  • OFFLINE
  • Bronze Donor
  • Beiträge: 203
  • Dank erhalten: 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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Automatically proceed to next question (without clicking "next") 5 Monate 2 Wochen her #106389

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4139
  • Dank erhalten: 767
  • Karma: 348
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.
Letzte Änderung: 5 Monate 2 Wochen her von tpartner.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.224 Sekunden
Donation Image