Standard clone button on a VF page in LEX, shows edit layout instead of the clone layout.
Last updated 2017-05-09 ·Reference W-3691873 ·Reported By 7 users
Users have a VF page which shows a record in <apex:detail>. In <apex:detail> they are showing standard clone button. It works fine in classic view. But in lightning mode when clone button is pressed, it recognizes the action as edit record and saves to the same record instead of cloning it.
1. In an org, create a VF page called Case_Warnings with the following code:
<apex:detail inlineEdit="true" showchatter="true"/>
2. Override Case's standard view link with this(Case_Warnings) VF page
3. Switch to lightning mode
4. Go to Cases tab
5. Click on any case
6. Click on Clone button. Modify description or any other field. Save.
Note that it modifies the case and saves it instead of creating a cloned case.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.