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
shakila Gshakila G 

How to handle two submit button in on success in lightning?

Hi All,

In lightnin page am using two submit button. 
1.Save
2.Save and New
When user click on save  based on handle on success am navigating new record detial page.
when user clicks save and new am unable to navigate to new screen that also going to same record details page.

How to handle two method seprately on success?

Thanks in Advance
ANUTEJANUTEJ (Salesforce Developers) 
Hi Shakila,

I found the below link that could be of help in your implementation of save and new button, could you please try checking it and save functionality is a normal save implementation, do let me know in case if there is a need for save functionality as well.

>> https://www.forcetalks.com/salesforce-topic/create-save-new-functionality-in-salesforce/

I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be useful for others in the future.

Regards,
Anutej 
shakila Gshakila G
Am looking for Salesforce lightning.