+ Start a Discussion
Diwakar G 7Diwakar G 7 

Auto Click Button

Hi,

I have button which is linked to Visualforce page. If I click on this button, in background internally it is taking id and some more parameters for creation of record. The visualforce page and controller class is hidden. Details I cannot see.

I want to trigger this button to click automatically. How can I do this?

Thanks and Regards,
Diwakar G
Raj VakatiRaj Vakati
Is it's coming from the managed package ?? 

You can do an URL hack 

or you can use Jquery 

https://stackoverflow.com/questions/18646881/auto-click-button-element-on-page-load-using-jquery

 
Diwakar G 7Diwakar G 7
Hi Raj,

Thanks for your reply. URL hack is not working because if I click on that button, it will not go to new URL. In background it is running. Please help me.

Thanks and Regards,
Diwakar G
Raj VakatiRaj Vakati
Ok ... you can do one think .. use jquery to auto click button 
Diwakar G 7Diwakar G 7
Hi,

I don't know, how to do this. 

Where to execute the jquery?

Please elaborate.

Thanks and Regards,
Diwakar G
Mohan Kalapuram 4Mohan Kalapuram 4
Hi 

Any one have any idea how to auto click detail page button in salesforce?

Thanks
Mohan