Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

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

  • moisespaivaspi
  • moisespaivaspi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 2 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:
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
6 years 2 months ago - 6 years 2 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: 6 years 2 months ago by LouisGac.
The topic has been locked.
  • moisespaivaspi
  • moisespaivaspi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 2 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.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
6 years 2 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.
The topic has been locked.
  • moisespaivaspi
  • moisespaivaspi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 2 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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 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:

Code:
$(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.
The following user(s) said Thank You: LouisGac
The topic has been locked.
  • moisespaivaspi
  • moisespaivaspi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 2 months ago #162674 by moisespaivaspi
Many thanks for you help.

I'ts was great.

Best regards
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose