Not working: Minimum elapsed time before moving forward in survey

More
3 years 10 months ago #95590 by mvdct
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:

Please Log in to join the conversation.

More
3 years 10 months ago #95598 by DenisChenu
Navigation delay :)

Think it's OK

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: mvdct

Please Log in to join the conversation.

More
3 years 10 months ago #95621 by mvdct
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

Please Log in to join the conversation.

More
3 years 10 months ago #95627 by DenisChenu
No, i didn't have a look because you don't need workaround : it's included in LS.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: mvdct

Please Log in to join the conversation.

More
3 years 10 months ago #95629 by mvdct
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.

Please Log in to join the conversation.

More
3 years 10 months ago #95633 by holch
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: mvdct

Please Log in to join the conversation.

More
3 years 10 months ago #95641 by DenisChenu
holch are right :).

Can you send us a link of a test survey ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: mvdct

Please Log in to join the conversation.

More
3 years 10 months ago #95651 by mvdct
Thanks both,

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

LSS also attached to first post of this thread.

Best.

Please Log in to join the conversation.

More
3 years 10 months ago #95654 by DenisChenu
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 ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: mvdct

Please Log in to join the conversation.

More
3 years 10 months ago #95668 by mvdct
Fantastic. Thank you.

Please Log in to join the conversation.