The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

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

THEMA: Scrolling to mandatory question errors

Scrolling to mandatory question errors 2 Monate 2 Wochen her #93311

  • psoo
  • psoos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 4
  • Karma: 0
Hi,

When filling in the survey a respondent skips a mandatory question and advances to next group (or submits the survey) - Limesurvey outputs errors to non-filled questions (or popup, if configured accordingly); does anybody know is it possible to configure LS to scroll automatically to a specific non-filled questions that caused the error?

Many thanks for any kind of feedback!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Scrolling to mandatory question errors 2 Monate 1 Woche her #93474

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2858
  • Dank erhalten: 424
  • Karma: 244
Try adding this to the end of template.js:
$(document).ready(function() {
 
	if($('.errormandatory').length > 0) {
		$('html, body').animate({
			scrollTop: $('.errormandatory:first').offset().top
		}, 2000);
	}
});
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Scrolling to mandatory question errors 2 Monate 1 Woche her #93527

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 735
  • Dank erhalten: 136
  • Karma: 43
Hello Tony,
Is it possible in the same time to disable the original prompt alert?
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Scrolling to mandatory question errors 2 Monate 1 Woche her #93529

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 4387
  • Dank erhalten: 453
  • Karma: 165
Ben_V schrieb:
Hello Tony,
Is it possible in the same time to disable the original prompt alert?
Use not know $showpopups in optional arry setting.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: Ben_V

Scrolling to mandatory question errors 2 Monate 1 Woche her #93532

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 735
  • Dank erhalten: 136
  • Karma: 43
Thank you Denis,
$showpopups added to my list of completly forgotten useful optional settings!
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Scrolling to mandatory question errors 2 Monate 4 Tage her #93884

  • sys_sby
  • sys_sbys Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 22
  • Karma: 0
Hello tpartner,

I need help and information,
where i can find class/ function file located for ('.errormandatory')?
Hoping i can to use javaScript for custom display

Thank you

Regards
sys_sby
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Scrolling to mandatory question errors 2 Monate 3 Tage her #93906

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2858
  • Dank erhalten: 424
  • Karma: 244
Already asked and answered in your other post.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.324 Sekunden
Donation Image