Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Redirect/change expired-inactive survey message

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #169725 by tpartner
It may be a caching issue. Completely clear you cache before testing.

Try placing this simple alert in custom.js:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
  alert('Page loaded.');
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
6 years 4 months ago #169760 by SCHEP23
I cleared the cache and putted the alert in custom.js and I see the alert.
But the error custom message script is still not working
Laura
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #169763 by tpartner
The workaround works for me. Unfortunately, I cannot debug your problem without seeing a test survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
6 years 3 months ago #170644 by jboogie21
Replied by jboogie21 on topic Redirect/change expired-inactive survey message
Is there a way to delay how quickly the code snippet redirects? I'm js dumb. Changing the numbers didn't work:-)

Otherwise this works great and the power of search strikes again. Thank you Tpartner!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 months ago #170647 by tpartner
Yes, you could put the redirect in a timeout. I'm not in able to give a code snippet now (from my phone) but try searching the forum for "SetTimeout for inspiration.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: jboogie21
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 years 3 months ago #170655 by DenisChenu
Replied by DenisChenu on topic Redirect/change expired-inactive survey message
I just update my old old old … plugin to be 3.0 compatible
gitlab.com/SondagesPro/coreAndTools/adaptEnterErrorSurveyText

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: jboogie21
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose