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
Mateo AlcauterMateo Alcauter 

How to simulate a button click from another button using javascript

There is a button on transactions that submit a transaction for approval.
I want to make a custom button to mass submit transactions for approval.
I'm trying to this by creating a list view in which you can select the transactions you want to submit for approval and idially you would click the "mass submit for approval" button that would simulate the "submit for approval" on every transaction that was selected. 
Any idea on how I can do this? The submit for approval button is a salesforce button and i cannot find the id of this button anywhere. 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Mateo,
  Hope it will be useful.

Please mark it as best answer if the information is that question is removed from an unanswered question and appear as a proper solution.

Rahul Kumar