Forums: How to change the label of 'Add' button of details table - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 15840
  • Joined: 03-February 03

Posted 13 June 2018 - 10:56 PM

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"));


Posted Image
Best regards,
Sergey Kornilov
0

#2 User is offline   pamgeo 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 06-April 16

Posted 14 June 2018 - 05:38 AM

View Postadmin, on 14 June 2018 - 01:56 AM, said:

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');



Posted Image


Hi admin, very helpful tip indeed !

Is there any way we can use a multi-language variable here?
0

#3 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 15840
  • Joined: 03-February 03

Posted 14 June 2018 - 10:04 PM

Good point, I've updated the article.
Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic