Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Editing Token Message

Editing Token Message 4 years 6 months ago #76614

Where do I find the template file containing the Token message letting a user know that their token was incorrect?
I need to edit the following text:

"This is a controlled survey. You need a valid token to participate.
The token you have provided is either not valid, or has already been used.
For further information please contact..."
The administrator has disabled public write access.

Editing Token Message 4 years 6 months ago #76640

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6305
  • Thank you received: 1406
  • Karma: 546
I think you will need to modify the translation - docs.limesurvey.org/Translating+LimeSurvey
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Editing Token Message 4 years 6 months ago #76683

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9346
  • Thank you received: 1338
  • Karma: 386
You can use something like that:
$(document).ready(function(){
        tokentext ="Another text for token message";
    }
    if (typeof tokenerror === "undefined"){
        tokenerror ="Another text for token error";
    }
 
   if ($("#tokenform").length )
   {
        $("#tokenmessage").html(tokentext);
   }
   else
   {
       $("#tokenmessage").html(tokenerror);
   }
 
});
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Time to create page: 0.230 seconds
Imprint                   Privacy policy                  Revocation information and revocation form