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
SFDC_Dev_2009SFDC_Dev_2009 

override save button --- Help needed

Can i override account "save" button using Visualforce . 

My visualforce page only executes javascript that queries information from account detail page and creates task

 

 

I am using Professional edition

 

 

 

edgarMedgarM

Hi

 

for overryde the save, delete, search button, you may writte a controller for you visualforce page, then you

call a function named same. example.

 

This is the page:

 

<apex:page> <apex:form> <aepx:commandButton value="Save" action="{!save}"/> </apex:form> </apex:page

 This is the controller.

 

 

public class myController { public PageReference Save() { PageReference reference=null; //Is the action for the save button, this redirect to google reference=new PageReference('https://www.google.com.mx'); reference.setRedirect(true); } }

 

That's it.