You need to sign in to do that
Don't have an account?
ktdsm
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 !!!
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