+ Start a Discussion

How to override button functionality


I have created a VF page with custom extension in which I will be taken to a new page when I click a "Attach File"

My problem is once I am taken to new page , I want to check a condition before I save the file. So I want to overrde the "Attach File" button in Save page of Notes and Attachment section . Is that possible ?

I can not write a VF page for  the rendered page ..so how can I overwrite the button?


In short, I want to override the button in the page rendered by Pagereference method .

Ron HessRon Hess
There is no way to override that button with visualforce, i don't think there is an attach file component either.  you would have to write your own javascript form to use the attach servlet, and that is not a supported API.