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

Mehr
1 Woche 6 Tage her #181447 von mrli999
COM_KUNENA_MESSAGE_CREATED_NEW
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.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
1 Woche 6 Tage her #181454 von Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
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
Anhang:
Folgende Benutzer bedankten sich: mrli999

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 6 Tage her #181461 von mrli999
COM_KUNENA_MESSAGE_REPLIED_NEW
I copied your script into the template.js file. But doesn't work. The button text is still not changed. Thanks.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 6 Tage her - 1 Woche 6 Tage her #181465 von Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
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
Anhang:
Last edit: 1 Woche 6 Tage her by Joffm.
Folgende Benutzer bedankten sich: mrli999, cdorin

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 6 Tage her #181480 von mrli999
COM_KUNENA_MESSAGE_REPLIED_NEW
This time it works, thanks.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha