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
NishanNishan 

Is it possible to autoclick a custom button after save is clicked?

Hi everyone,
                       I have a detail page onclick javascript cutom button which need to be clicked everytime right after I save a record. Is it possible to automate this function? I heard about a click() function but it is only usable if I can override the save function. Is there some fuction I can add to the script of the custom button to achieve this?

simple-forcesimple-force

HI Nishan,

 

you are not able to override the standard save button. But there are 2 other options

1. Override the standard edit page

2. Use a trigger to perform your action.

 

Christian

NishanNishan

Hi Christian,

                      How can I override the standard edit page in Force.com? Do I need visualforce page for that ?