- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to change the text on the "Next", "Previous" and "Submit" buttons separately
- ipolit
- Topic Author
- Offline
- New Member
Less
More
4 years 1 week ago - 4 years 1 week ago #196463
by ipolit
How to change the text on the "Next", "Previous" and "Submit" buttons separately was created by ipolit
I'd like to change the text on all three of those buttons, with different text in each one.
From a previous post, this js script changes the button for both next and submit:
From a previous post, this js script changes the button for both next and submit:
Code:
$(document).on('ready pjax:scriptcomplete',function(){ $('#ls-button-submit').text('To complete the survey press here'); });
Last edit: 4 years 1 week ago by ipolit.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
4 years 1 week ago #196467
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic How to change the text on the "Next", "Previous" and "Submit" buttons separately
Surround it by the <script> tag, add it to the question text and this way you are able to change the text on each page separately.
Joffm
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- ipolit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 years 1 week ago #196493
by ipolit
Replied by ipolit on topic How to change the text on the "Next", "Previous" and "Submit" buttons separately
Thank you for your answer!
This allows me to change the "next" and "submit" buttons depending on the page.
Is there a way to change the "previous" button too?
This allows me to change the "next" and "submit" buttons depending on the page.
Is there a way to change the "previous" button too?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 1 week ago - 4 years 1 week ago #196512
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 How to change the text on the "Next", "Previous" and "Submit" buttons separately
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#ls-button-previous').text('New previous text'); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 1 week ago by tpartner.
The topic has been locked.