As part of the Salesforce internal migration from Aura to LWC, more modals in Lightning Experience now render using LWC. This update provides improved performance, especially when working with a large number of fields on a record create or edit modal. You can now also use Dynamic Forms in a modal that’s opened from a Create from Lookup field on most LWC-enabled record pages. When you enable this update, you can expect minor changes to modal behavior. This update was first available in Summer ’24
How: To review this update, from Setup, in the Quick Find box, enter Release Updates, and then select Release Updates. For Enable LWC Stacked Modals, follow the testing and activation steps
If you use custom quick actions, consider these guidelines
- Aura quick actions, modals launched by Aura quick actions redirect you to the newly created record page after record save. If you used force:createRecord, consider using LWC quick actions instead. Use the lightning/navigation module to configure post-save navigation to return you back to the original record page that launched the quick action
- LWC quick actions, when using the lightning/navigation module, the newer modal overlays and stacks on the previous modal by default. To automatically close the previous modal when navigating, set replace to true. When replace is true, post-save navigation redirects you to the newly created record
Enable LWC Stacked Modal Release Update | LWC Stacked Modal Release Update Not Enabled | Example | |
---|---|---|---|
Create from Lookup | Returns back | Returns back | On a contact page, click the Edit action. On the Account Name field, click New Account. A stacked modal for new account creation is displayed |
Standard Quick Action | Returns back | Returns back | On an account page, click the New Case action. A stacked modal for new case creation is displayed |
LWC Quick Action (stacked) | Returns back | Returns back | Add an LWC quick action to a contact page. The quick action launches a modal, which contains a button that launches another modal using lightning/navigation |
LWC Quick Action (not stacked) | Redirects to newly created record page | Redirects to newly created record page | Add an LWC quick action to a contact page. The quick action launches a modal |
Aura Quick Action (not stacked) | Redirects to newly created record page | Returns back | Add an Aura (Lightning Component) quick action to a contact page. The quick action creates a case using a lightning:recordEditForm base component |