Skip to main content

We have overriden the standard Edit action on contacts using a Visualforce, this has been there for years and working fine in Classic. Use case is some users needs to see the VF, some other not, which we are solving by some Apex code checking a few things and either keeping the VF or redirecting to the standard UI (using ApexPages.StandardController(myContact).edit()).

 

We're starting a Pilot in Lightning to see if it's possible to migrate, and we are facing an issue for the users seeing the standard edit page.

 

When clicking on Edit, we're redirected to the VF page, but in Lightning it is firing a modal (as you can see on my printscreen). Two issues with that:

  • Page behind the modal is an empty one, and clicking on cancel leaves the user here
  • Worst, clicking on Save will close the modal, LEX will fire a refresh and thus reload the VF, which will open the Edit modal again

 

I've watched the Lightning Experience Roadmap session of TrailheaDX, and there is a mention about having more Quick Action controls in the future. Would these enhancements be available for override (like deciding to display the VF in a modal in Lightning), or is it just for Quick Actions ?

 

@Eric Jacobson if you have any idea.

 

Thanks.

2 commentaires
  1. 25 juil. 2017, 13:00

    So far I changed the code to redirect to the view page. When coming from another page (like clicking on edit on a record in a related list), users are sent to the correct record and need to click a second time on the Edit button (I replaced the standard one with a custom action) to edit it.

    Feels a little bit buggy to them but better than what I described in my post.

0/9000