How to implement “Save & New” functionality in a VisualForce Page
问题 I know that this is how to save a record <apex:commandButton action="{!save}" value="Save"/> Now I want a button to save the current record and reset the form to input another record. Something like this... <apex:commandButton action="{!SaveAndNew}" value="Save & New"/> 回答1: The URL for the new record page is the {org URL}/{3 letter object prefix}/e?". You could define your save method as follows, where m_sc is a reference to the standardController passed to your extension in it's constructor