Welcome, Guest
Username: Password: Remember me

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

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95590

  • mvdct
  • mvdct's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 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.)
Attachments:
The administrator has disabled public write access.

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95598

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
Navigation delay :)

Think it's OK
The administrator has disabled public write access.
The following user(s) said Thank You: mvdct

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95621

  • mvdct
  • mvdct's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 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
The administrator has disabled public write access.

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95627

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
No, i didn't have a look because you don't need workaround : it's included in LS.
The administrator has disabled public write access.
The following user(s) said Thank You: mvdct

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95629

  • mvdct
  • mvdct's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 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.
The administrator has disabled public write access.

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95633

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2956
  • Thank you received: 379
  • Karma: 124
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!
The administrator has disabled public write access.
The following user(s) said Thank You: mvdct

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95641

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
holch are right :).

Can you send us a link of a test survey ?

Denis
The administrator has disabled public write access.
The following user(s) said Thank You: mvdct

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95651

  • mvdct
  • mvdct's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 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.
The administrator has disabled public write access.

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95654

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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 ;)
The administrator has disabled public write access.
The following user(s) said Thank You: mvdct

Not working: Minimum elapsed time before moving forward in survey 1 year 6 months ago #95668

  • mvdct
  • mvdct's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 1
  • Karma: 0
Fantastic. Thank you.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.266 seconds
Donation Image