New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

Tuesday 7 August 2012

How to give the Pagereference for the Save & New ?

Question:
When I am clicking Save & New the record is inserting and giving the same page but the problem is it is giving the same values which has been entered on the before page.

Solution:

PageReference pr=Page.MyPage;
pr.setRedirect(true);

return pr;
   

No comments:

Post a Comment

Labels