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_2706SFDC_2706 

Cancel button not working in lightning UI

Hi All
I created two VF pages to override the standard lead button NEW and EDIT. Lead has 6 record types where 3 record types works with standard salesforce pages and other 3 record types opens with the custom VF page. 

Now when i try to create new lead or edit existing lead and click on cancel button in lightning UI the screen doesn't go back to the detail page of the record or lead main page but it again and again shows the same edit page after refresh. This issue is for the 3 record types which are working standard salesforce pages and everything is working smooth for other 3 record types which opens with custom VF pages.

I am completely lost what to do and what not to do. I tried many things but no luck yet. Please let me know if i am missing something or do i need to give extra permissions or enable anything in lightning UI because all the record types are working perfectly fine in classic view.
Any help would be greately appreciated, thanks in advance.

Regards
Ronu
rajiv reddyrajiv reddy
Hello Ronu 
You found the solution for this? As iam facing the same issue with my case object.