Check out the LimeSurvey source code on GitHub!

Editing Token Message

More
4 years 11 months ago #76614 by FreedomTrip
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..."

Please Log in to join the conversation.

More
4 years 11 months ago #76640 by tpartner
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.

Please Log in to join the conversation.

More
4 years 11 months ago #76683 by DenisChenu
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form