Programmatic Navigation Actions
Some features require more complicated navigation designs. For the most complete control of your user interface and navigation scheme, define navigation actions using JavaScript.
In Lightning web components, navigation actions are built using the navigation service, provided by the lightning/navigation module. See Navigate to Different Page Types in the Lightning Web Components Developer Guide to get started.
This module is supported for use in LWC Offline-enabled mobile apps. Each different Salesforce mobile app has different features, and each implements support for the navigation service independently. As a consequence, there are some differences in available and supported navigation actions. See the documentation for your specific mobile apps for more details.
-
Navigation Actions in the Salesforce Mobile App
Use these supported programmatic navigation actions in your Lightning web components intended for use in Salesforce Mobile App Plus.
-
Navigation Actions in the Field Service Mobile App
Use these supported programmatic navigation actions in your Lightning web components intended for use in the Field Service Mobile app.
-
These common navigation actions aren’t specific to Salesforce. Depending on your situation, use the LWC navigation service, or in some special cases use standard JavaScript code techniques.
See Also