Keep these limitations in mind when working with custom buttons and links.
Required Editions
| Available in: Salesforce Classic |
|
Custom buttons and links are available in: All Editions Visualforce pages and s-controls are available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions |
- A custom link’s label can’t exceed 1,024 characters.
- A link URL can be up to 2,048 bytes. When data is substituted for the tokens in the URL, the link can exceed 3,000 bytes. Some browsers enforce limits on the maximum URL length.
- Custom buttons that call JavaScript aren’t supported in Lightning Experience.
- Custom buttons with a content source of OnClick JavaScript aren’t supported in the Salesforce app.
- Using URL custom buttons to pass parameters to standard pages in Salesforce Classic—such as prepopulating fields when creating a record—doesn’t work in the Salesforce mobile app.
- On record detail pages for external objects that are associated with high-data-volume external data sources, custom buttons, and links that call JavaScript aren’t supported.
- Custom buttons aren’t available for Web-to-Lead, Web-to-Case, the Case Teams related list, or the user object.
- Custom buttons on search results pages aren’t supported in Lightning Experience.
- When you redirect to an external website with merge fields, use the Text Field data type field. If you use the URL data type field, the link breaks because symbols in the link are converted to hexadecimal code.
- Some URL custom buttons open links in the same tab, even if the button behavior is set to open in a new window. For example, URL links to Visualforce pages always open in the same tab.
- Visualforce pages used as custom links on the home page can’t specify a controller.