Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Change button text

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219551 by tpartner
Replied by tpartner on topic Change button text
There is no Bootstrap modal pop-up on that page so you need to remove that event listener.

Try this (assuming your button ID is correct):

Code:
$(document).on('ready pjax:scriptcomplete',function(){
 
    // Modify Save button text
    if($.trim($('#savebutton').text()) == 'Gardar Agora') {
        $('#savebutton').text('Gardar agora')
    }
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • brais24
  • brais24's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 7 months ago #219569 by brais24
Replied by brais24 on topic Change button text
Thank you!! Works like a charm, I have to improve my javascript.

Thanks to all.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose