Newer Version Available

This content describes an older version of this product. View Latest

Guidelines and Best Practices

Visualforce pages aren’t automatically mobile friendly in the Salesforce app. The standard Salesforce header and sidebar are disabled in favor of the mobile controls, and a JavaScript API is available to make it possible for Visualforce pages to connect with mobile navigation management. In other respects the pages remain as they are and, although usable within the app, desktop focused Visualforce pages will feel desktop focused.

Fortunately, making your apps look great in the Salesforce app is straightforward. You can either revise your code so that your pages work in both the full Salesforce site and the app, or you can create mobile-specific pages.

In this chapter, you’ll learn best practices for how to:
  • Share Visualforce pages between mobile and desktop.
  • Exclude Visualforce from mobile or desktop.
  • Choose the best architecture for your Visualforce pages.
  • Choose an effective page layout for your pages.
  • Manage user input and navigation.
  • Use Visualforce pages as custom actions.
  • Tune your pages for the best performance.