Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Not working: Minimum elapsed time before moving forward in survey

Not working: Minimum elapsed time before moving forward in survey 11 Monate 2 Wochen her #95590

  • mvdct
  • mvdcts Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 41
  • Dank erhalten: 1
  • Karma: 0
Hi Limesurvey,

I'm trying to delay when a participant can press the next button on just one page in a larger survey.

I don't want to display count down timers. I'd simply prefer:
i. for the next button not to appear,
ii. for it to be grayed out,
iii. or for it not to work until a certain amount of time had elapsed.

I thought I had found the solution with the js section of the workarounds manual.

manual.limesurvey.org/Workarounds:_Manip...ng_forward_in_survey

But when I apply this js, it doesn't work (and yes, I do have "Filter HTML for XSS" turned to "off"

I'll attach a cut down version of the survey I am using (page0 - tests js, page1 - tests page delay, page2 - end of survey & submit)

Please let me know your thoughts.
(I'm using Version 2.00+ Build 130428.)
Anhang:
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95598

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5830
  • Dank erhalten: 711
  • Karma: 220
Navigation delay :)

Think it's OK
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: mvdct

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95621

  • mvdct
  • mvdcts Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 41
  • Dank erhalten: 1
  • Karma: 0
Hi Denis,

Thanks for looking at this with me.

Did you find that the attached survey worked?

While I found that the "test" window appeared suggesting that js was working, when I went onto the next page (with the horse sound effect) the next button was always available. I want this to be

Have I missed something?

Best
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95627

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5830
  • Dank erhalten: 711
  • Karma: 220
No, i didn't have a look because you don't need workaround : it's included in LS.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: mvdct

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95629

  • mvdct
  • mvdcts Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 41
  • Dank erhalten: 1
  • Karma: 0
Really?
I'm sorry, I must have missed that option.
I didn't realise it was possible to delay the navigation on a single page
Where do I find that option?
Thanks in advance.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95633

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2442
  • Dank erhalten: 254
  • Karma: 94
I think Denis missed the portion where you want to do it for a single page. As his solution is applied to the whole survey, I don't think it will solve your problem.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: mvdct

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95641

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5830
  • Dank erhalten: 711
  • Karma: 220
holch are right :).

Can you send us a link of a test survey ?

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

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95651

  • mvdct
  • mvdcts Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 41
  • Dank erhalten: 1
  • Karma: 0
Thanks both,

Link to survey:
mvdct.org.uk/limesurvey/index.php/252218/lang-en

LSS also attached to first post of this thread.

Best.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95654

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5830
  • Dank erhalten: 711
  • Karma: 220
Hello,
if((endTime - startTime)/1000 <= minTime) {
and not
if[[endTime - startTime)/1000 <= minTime) {

Corrected in woarkarounds

And use firbug when you trye to do some javascripting ;)
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: mvdct

Not working: Minimum elapsed time before moving forward in survey 11 Monate 1 Woche her #95668

  • mvdct
  • mvdcts Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 41
  • Dank erhalten: 1
  • Karma: 0
Fantastic. Thank you.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.256 Sekunden
Donation Image