You need to sign in to do that
Don't have an account?
Cool_Devloper
Message Edited by Cool_Devloper on 12-29-2008 11:26 AM
Overriding Approval Process Buttons
Hello Friends,
I have a requirement wherein i need to override the Standard Approval Process buttons like Recall, Submit to redirect to my custom VF page instead of going back to the standard detail page.
Does anyone know how can this be done either through apex or some other way?
Any help would be very useful.
Thanks
Message Edited by Cool_Devloper on 12-29-2008 11:26 AM
I have looked for this as well, and have not been able to figure it out, except, if you make a complete duplicate of the standard object page in VF, and make a custom related list for the approval flow with custom buttons.
Message Edited by MATTYBME on 01-06-2009 10:41 AM
Message Edited by Cool_Devloper on 01-06-2009 06:37 PM
If this is so then I do not believe there is a simple way of overriding those links. Your best bet is to recreate your object homepage so that those links point to your new details page. However, if you do this you need to create a new tab and assign your new VF object homepage to that tab. If you do not do this you will override your object homepage for your entire Salesforce instance.
I did this for Cases so have a template of code if you need.
Actually, the view button override applies to the "name link" on the object's home page as well as finally it is a view only.
You got it right Matt. Thanks for all the help :)
Thanks,
Cool_D
Did you ever find a solution to override Submit Approval button and redirect it to a VF page?
@trinity: there is a solution here: http://chitizagarwal.blogspot.com/2011/05/override-standard-approval-process.html
Good luck.
Sonny