function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SF@SiemensSF@Siemens 

Create and Add Custom Button to Object Related List

Hi,

 

I am trying to create a new button and append this button to an existing button row on a related list, but have not been successful as of yet.  The issue is that the <td> tag that I'm trying to append the button to has no ID attribute and has only a className attribute that is shared by other <td> tags on the page making it impossible to find the correct tag.

 

Any suggestions on how to append the custom button?

 

Thanks,

shillyershillyer

It's explained in this thread.

 

Hope that helps,

Sati

SF@SiemensSF@Siemens

Sati,

 

Thanks for the reply, but my button needed to be added to a related list on an Account so I couldn't do it by simply adding to the layout. 

 

I actually solved the problem by finding a standard button in the related list, getting the ParentNode, and appending the newly created button in JS to that parentNode.

 

Thanks again for your time on this issue though!

Tushar SethTushar Seth

SF@Siemens PLEASE SHARE YOUR CODE ON MY EMAIL ID I NEED SAME IMPLEMENTATION IN MY PROJECT......

 

Thanks,

Tushar Seth

tusharseth123@gmail.com

VairavVairav

Hi,

Can u please share ur code. i do have the similar requirement