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..."
$(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 support
-
Plugins, theme and development
. I don't answer to private message.
Added alert(123); in my custom-template => scripts/template.js file and alert pop-up does not appear in the Token request page, but appears in survey page (after I enter token and go to survey page). Does that mean i am adding the code in wrong file?
I am trying to change the Token message text and Token invalid/error message text.