- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Editing Token Message
- FreedomTrip
- Topic Author
- Offline
- New Member
Less
More
12 years 1 month ago #76614
by FreedomTrip
Editing Token Message was created 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..."
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 topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
12 years 1 month ago #76640
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Editing Token Message
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 topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
12 years 1 month ago #76683
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Editing Token Message
You can use something like that:
Code:
$(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 , plugin development .
I don't answer to private message.
The topic has been locked.
- MadhuraBL
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 0
6 years 8 months ago - 6 years 8 months ago #157138
by MadhuraBL
Replied by MadhuraBL on topic Editing Token Message
Hi, where do I add these lines?
tried adding into template.js and did not reflect!
Tried the code in this post as well, doesn't reflect! www.limesurvey.org/forum/can-i-do-this-w...e-token-request-text
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.
Thanks in advance.
tried adding into template.js and did not reflect!
Tried the code in this post as well, doesn't reflect! www.limesurvey.org/forum/can-i-do-this-w...e-token-request-text
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.
Thanks in advance.
Last edit: 6 years 8 months ago by MadhuraBL.
The topic has been locked.
- creocatia3d
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
4 years 7 months ago #188931
by creocatia3d
Replied by creocatia3d on topic Editing Token Message
????
The topic has been locked.