+ Start a Discussion
Amitkumar15Amitkumar15 

Open VF page on Clicking of Approve/Reject Link

 

How i can open a VF page on click of Approve/Reject link?

 

 

 

Any help on this?

nbknbk

Hi Amit,

 

The Approve/Reject link functionality is salesforce native, I hope we can't open with custom vfp by clicking on these buttons.

 

Thanks,

Balakrishna

Avidev9Avidev9
Can you describe a lil more on this ?
Do you want to escape the default functionality ?
I guess we can open a VF using some js.
rosh_sfdcrosh_sfdc

Instead of overriding the standard button you can have our own button which sends the record for approval and redirects to a visualforce page.

 

eg:
 call the following method on action of the button

public Pagereference Submit for Approval () {

    /*

      Code to send records for approval

   */

 

   Pagereference page = System.Page.YourPageName;

   return page;

 

}