Change the "next" button

More
1 month 1 day ago #169010 by yohay
yohay created the topic: Change the "next" button
Hi
I need to change the 'next' button to 'to complete the survey press here'

My survey comprised of 3 groups with each group represent a survey (only one group is shown for the respondent according to an attribute's value) so with each page I need to change the text of the 'Next' button

looking around I saw that this could only be done with javascript?
Can someone direct me where I should add this JS and if the code is:
<script>
$(document).ready(function()

{

$('.ui-button-text').text('to complete the survey press here');

});
</script>

Thanks!

Please Log in or Create an account to join the conversation.

More
1 month 1 day ago #169028 by tpartner
tpartner replied the topic: Change the "next" button
What LimeSurvey version?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
1 month 1 day ago #169041 by yohay
yohay replied the topic: Change the "next" button
2.52

Please Log in or Create an account to join the conversation.

More
1 month 1 day ago - 1 month 1 day ago #169054 by tpartner
tpartner replied the topic: Change the "next" button
If you want to change the text for all pages/groups, add this to the end of template.js (untested because that LS version is obsolete):

$(document).on('ready pjax:scriptcomplete',function(){
	$('#movenextbtn').text('To complete the survey press here');
});


For 3.x, add this to the end of custom.js:

$(document).on('ready pjax:scriptcomplete',function(){
	$('#ls-button-submit').text('To complete the survey press here');
});

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 month 1 day ago by tpartner.
The following user(s) said Thank You: LouisGac, yohay

Please Log in or Create an account to join the conversation.

More
1 month 19 hours ago #169064 by yohay
yohay replied the topic: Change the "next" button
Thanks a lot ! worked like a charm.

BTW, Is it possible to do this per page and not for the whole survey?

Please Log in or Create an account to join the conversation.

More
1 month 13 hours ago #169091 by tpartner
tpartner replied the topic: Change the "next" button

BTW, Is it possible to do this per page and not for the whole survey?

Add this to the source of any question on the page:


Version 2.x:
<script type="text/javascript" charset="utf-8">
 
	$(document).on('ready pjax:scriptcomplete',function(){
		$('#movenextbtn').text('To complete the survey press here');
	});
</script>


Version 3.x:
<script type="text/javascript" charset="utf-8">
 
	$(document).on('ready pjax:scriptcomplete',function(){
		$('#ls-button-submit').text('To complete the survey press here');
	});
</script>

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, yohay

Please Log in or Create an account to join the conversation.

More
4 weeks 2 days ago #169113 by yohay
yohay replied the topic: Change the "next" button
Great. Thanks a lot for the help

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!