This topic is locked

How to change the label of 'Add' button of details table

6/13/2018 6:56:53 PM
PHPRunner Tips and Tricks
admin

Applies to: PHPRunner, ASPRunner.NET, ASPRunnerPro.
Let's say we have a messaging application and need to change Add button label to something like 'Send message'.
To do so add the following code to details table list page Javascript OnLoad event.

$("a[id^=addButton]").text('Send message');


In a multilanguage project create a custom label and change your code the following way. Here Send_message is your custom label ID.

$("a[id^=addButton]").text(Runner.getCustomLabel("Send_message"));


P
pamgeo 6/14/2018



Applies to: PHPRunner, ASPRunner.NET, ASPRunnerPro.
Let's say we have a messaging application and need to change Add button label to something like 'Send message'.
To do so add the following code to details table list page Javascript OnLoad event.

$("a[id^=addButton]").text('Send message');





Hi admin, very helpful tip indeed !
Is there any way we can use a multi-language variable here?

admin 6/14/2018

Good point, I've updated the article.