How to change the button text from submit to next or any others?

More
1 week 6 days ago #181447 by mrli999
I would like to change the button text from submit to next. I searched the forum and finded the following resolution:

$(document).ready(function(){
var submitText = 'Next';
$('#movesubmitbtn .ui-button-text').text(submitText);
});

I copied the above script to the template.js file, and put it at the end of this file. But doesn't work.


I inspected my survey the find the name of submit button is:
<button type="submit" id="movesubmitbtn" value="movesubmit" name="movesubmit" accesskey="l" class="submit button btn btn-lg btn-primary"> Submit </button>

And my limesurvey version is 2.65.3+170607.

If I would like to change the text for the submit button. What should I do? thanks.

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

LimeSurvey Partners
More
1 week 6 days ago #181454 by Joffm
Hi,
only:

$(document).ready(function(){
var submitText = 'My new submit';
$('#movesubmitbtn').text(submitText);
});


Joffm

Tested in Version 2.73.1+171220


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: mrli999

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

More
1 week 6 days ago #181461 by mrli999
I copied your script into the template.js file. But doesn't work. The button text is still not changed. Thanks.

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

More
1 week 6 days ago - 1 week 6 days ago #181465 by Joffm
I entered it in the question text

and it works in template.js as well.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 week 6 days ago by Joffm.
The following user(s) said Thank You: mrli999, cdorin

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

More
1 week 6 days ago #181480 by mrli999
This time it works, thanks.

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!