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
ktdsmktdsm 

how to get a button id on standard object dynamically in javascript

Hi,

 

I have a button on a related list . This button is calling another button that is on parent object and is hidden.This hidden button calls a S- Control.

 

Instead of hardcoding the id of hidden button in the javacript code to make a call to it , i want to get the hidden button id dynamically when the user hits the related list button(javascript is written).

 

 

I really need it very urgent !!!

The KnightThe Knight

Use Merge Field. In s-control editor select  "$Action" in "select Field Type"  then you can see all the buttons in "Insert Field" dropdown. Example for new account button {!$Action.Account.New} this will return the Id.

 

Regards

Joseph