Change text and color of the "Print your answers" button

More
1 year 9 months ago #162643 by moisespaivaspi
Good Morning.

In the survey I did recently, I was asked to change the text of the "Print your answers" button to "To save all the results of your survey in pdf or xml click on this link.". I was also asked to adjust this text to the rest of the text of the final message.

Can anyone tell me which css and html files I have to access to make the changes ?.

Best regards.
Attachments:

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 year 9 months ago - 1 year 9 months ago #162644 by LouisGac
there are various ways to do that.

In LS 3.x, you can change that string in the twig file (by extending a theme in theme editor):


github.com/LimeSurvey/LimeSurvey/blob/3f...tent/submit.twig#L53

Before LS 3.x, you can update the translation files, or you can create a JS script to replace the string
Last edit: 1 year 9 months ago by LouisGac.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #162649 by moisespaivaspi
Hello LouisGac.

Many thanks for the reply.
Where do I find the twig file? I accessed the "File Manager" from my limesurvey's cpanel but did not find it.

Best regards.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #162650 by LouisGac
It only exists in LimeSurvey 3.x version.
If you have a prior version you can change directly the string (it's deep into the code), and you should use the translation file.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #162651 by moisespaivaspi
Hmm, I understood.
My version is 2.72.2 + 171017.

I've been reading about "Translating LimeSurvey" but I confess I did not quite understand how I can proceed to make the changes I need. Can you explain me better about the procedure?

I am sorry for the inconvenience but I am still very unprepared with limesurvey.
Best regards.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #162670 by tpartner
If you don't want to mess with translations, you can modify the print link text by placing something like this at the end of template.js:

$(document).ready(function() {
	$('.completed-table a.printlink').text('To save all the results of your survey in pdf or xml, click on this link.');
});


Sorry, I don't understand "I was also asked to adjust this text to the rest of the text of the final message.".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #162674 by moisespaivaspi
Many thanks for you help.

I'ts was great.

Best regards

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!