Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Rename: Add New Record using custom object

NaveenkumarSha1
Contributor III

Hi All,

Has anyone tried using custom object to rename "Add New Record" displayed in the layout when we add a new record. Thank you

5 REPLIES 5

Ilya_Khen
Champion III

Naveenkumar Shanmugam,

 

Yes, you can. You just need to know the ID of the element. Right click on Add New link and check the ID of the <A> element. Then you can for example:

Sys.Application.add_load(function()
{
$('#master_DefaultContent_rts_ts2640_s5871_Add_New').text('Type here the new Title text');
});‍‍‍‍

 

Instead master_DefaultContent_rts_ts2640_s5871_Add_New should be your ID.

Hi IIya,

 

Thank you so much for your help. But I was looking for changing the layout title not the button. "Add New Record" in the left corner. Is that the same you are talking about? pastedImage_1.png

Nope, I was talking about Add New in the CR, but the idea is same. Get ID of the element and change text attribute.

I believe it is something like:

$('.frame-title-key').text('New Title');

Thank you

Anytime