- Posts: 38
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
stemate1988 wrote: Morning,
I have a bit of jquery which i want to use to replace some text in the #tokenmessage.
I want 'Please contact' to be replaced.
$("#tokenmessage p").text($("#tokenmessage p").text().replace("Please contact", "It looks as though you’ve recently completed the survey and provided your feedback. Unfortunately, we’re only able to accept one survey per applicant"));
Is this possible and where would the code have to sit?
$(function() { if($("#tokenmessage p").length){ $("#tokenmessage p").text($("#tokenmessage p").text().replace("Please contact", "It looks as though you’ve recently completed the survey and provided your feedback. Unfortunately, we’re only able to accept one survey per applicant")); } });