How to find and replace text in interface outputs
Sometimes you might want to override system generated text on a form.

There are two ways to do this:

1) Request our team replace your account's language files with updated text. When we do this, the changes are reflected across all your surveys.

2) If you just want to find and replace text for specific surveys, you can use JavaScript in your theme's relevant twig file to find and replace text.

For example, here's some JavaScript that looks for some system text and replaces it with custom text:
<script> 
     document.body.innerHTML = document.body.innerHTML.replace('We are sorry but the survey is expired and no longer available.', 'Thank you for your interest in doing the survey. Our target number of completed interviews has been exceeded.');
     document.body.innerHTML = document.body.innerHTML.replace('Error', '');
     document.body.innerHTML = document.body.innerHTML.replace('Please contact Administrator ( support@hostedincanadasurveys.ca ) for further assistance.', '');
</script>
The first element in the replace() function (within the first set of single quotes) is the on screen text you wish to replace.
The second element in the replace() function (within the second set of single quotes) is the text you wish to replace it with. 
24 of 32 people found this helpful.   




Powered by LiveZilla Live Chat Software