Welcome, Guest
Username: Password: Remember me

TOPIC: Editing Token Message

Editing Token Message 2 years 5 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.

Re: Editing Token Message 2 years 5 months ago #76640

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4127
  • Thank you received: 761
  • Karma: 347
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Editing Token Message 2 years 5 months ago #76683

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6272
  • Thank you received: 800
  • Karma: 240
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);
   }
 
});
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.158 seconds
Donation Image