How to change the text on the "Next", "Previous" and "Submit" buttons separately

More
1 month 4 weeks ago - 1 month 4 weeks ago #196463 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:
$(document).on('ready pjax:scriptcomplete',function(){
	$('#ls-button-submit').text('To complete the survey press here');
});
Last edit: 1 month 4 weeks ago by ipolit.

Please Log in to join the conversation.

More
1 month 4 weeks ago #196467 by Joffm
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


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 month 4 weeks ago #196493 by ipolit
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?

Please Log in to join the conversation.

More
1 month 4 weeks ago - 1 month 4 weeks ago #196512 by tpartner
<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.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 1 month 4 weeks ago by tpartner.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now