- Posts: 47
- Thank you received: 0
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
- Topic Author
- Offline
- Senior Member
Less
More
6 years 2 months ago #162643
by moisespaivaspi
Change text and color of the "Print your answers" button was created 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.
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
- Visitor
6 years 2 months ago - 6 years 2 months ago #162644
by LouisGac
Replied by LouisGac on topic Change text and color of the "Print your answers" button
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
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 2 months ago #162649
by moisespaivaspi
Replied by moisespaivaspi on topic Change text and color of the "Print your answers" button
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.
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:
The topic has been locked.
- LouisGac
- Visitor
6 years 2 months ago #162650
by LouisGac
Replied by LouisGac on topic Change text and color of the "Print your answers" button
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.
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 2 months ago #162651
by moisespaivaspi
Replied by moisespaivaspi on topic Change text and color of the "Print your answers" button
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
6 years 2 months ago #162670
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Change text and color of the "Print your answers" button
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:
Sorry, I don't understand "I was also asked to adjust this text to the rest of the text of the final message.".
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 0
6 years 2 months ago #162674
by moisespaivaspi
Replied by moisespaivaspi on topic Change text and color of the "Print your answers" button
Many thanks for you help.
I'ts was great.
Best regards
I'ts was great.
Best regards
The topic has been locked.