Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1
  • 2

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

Automatically proceed to next question (without clicking "next") il y a 1 an 2 mois #95995

  • ahavlik
  • Portrait de ahavlik
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Remerciements reçus 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 1 an 2 mois #96016

  • tpartner
  • Portrait de tpartner
  • En ligne
  • LimeSurvey Team
  • Messages : 4050
  • Remerciements reçus 739
  • Karma: 341
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.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: ahavlik

Automatically proceed to next question (without clicking "next") il y a 1 an 2 mois #96028

  • ahavlik
  • Portrait de ahavlik
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 1 an 2 mois #96033

  • tpartner
  • Portrait de tpartner
  • En ligne
  • LimeSurvey Team
  • Messages : 4050
  • Remerciements reçus 739
  • Karma: 341
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.
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 5 mois 4 jours #105223

  • dweisser
  • Portrait de dweisser
  • Hors ligne
  • Bronze Donor
  • Messages : 196
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 5 mois 4 jours #105239

  • boyan
  • Portrait de boyan
  • Hors ligne
  • Senior Lime
  • Messages : 49
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 5 mois 4 jours #105253

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6195
  • Remerciements reçus 786
  • Karma: 238
HI,

Think with 2.05, it's more easy to use :
$("#defaultbtn").click();
Denis
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 5 mois 3 jours #105273

  • emimarz
  • Portrait de emimarz
  • Hors ligne
  • Junior Lime
  • Messages : 21
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 4 mois 6 jours #106387

  • dweisser
  • Portrait de dweisser
  • Hors ligne
  • Bronze Donor
  • Messages : 196
  • Remerciements reçus 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?
L'administrateur a désactivé l'accès en écriture pour le public.

Automatically proceed to next question (without clicking "next") il y a 4 mois 6 jours #106389

  • tpartner
  • Portrait de tpartner
  • En ligne
  • LimeSurvey Team
  • Messages : 4050
  • Remerciements reçus 739
  • Karma: 341
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.
Dernière édition: il y a 4 mois 6 jours par tpartner.
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Modérateurs: ITEd
Temps de génération de la page : 0.229 secondes
Donation Image