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

Plus d'informations
il y a 1 an 9 mois #162643 par 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.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 1 an 9 mois - il y a 1 an 9 mois #162644 par 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
Dernière édition: il y a 1 an 9 mois par LouisGac.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 9 mois #162649 par 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.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 9 mois #162650 par 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 9 mois #162651 par 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 9 mois #162670 par 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
Les utilisateur(s) suivant ont remercié: LouisGac

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 9 mois #162674 par moisespaivaspi
Many thanks for you help.

I'ts was great.

Best regards

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!