Loading
Enhance Salesforce with Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          View and Edit Visualforce Custom Components

          View and Edit Visualforce Custom Components

          A custom component encapsulates a common design pattern that can be reused in one or more Visualforce pages.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
          User Permissions Needed
          To clone, edit, delete, or set versions for custom components: Customize Application

          From Setup, enter Components in the Quick Find box, then select Visualforce Components and click the name of a custom component to view its definition.

          From the detail page, you can do any of the following:

          • Click Edit to edit the custom component.
          • Click Delete to delete the custom component.
          • Click Clone to create a copy of the custom component. You must specify a new name for the new component.
          • Click Where is this used? to view a list of all references to the custom component in your organization.
          • Click Show Dependencies to display the items, such as another component, permission, or preference, that must exist for this custom component to be valid.

          Once your component has been created, you can view it at http://yourSalesforceOrgURL/apexcomponent/nameOfNewComponent, where yourSalesforceOrgURL is the URL used to access your Salesforce org (for example, MyDomainName.my.salesforce.com) and the value of nameOfNewComponent is the value of the Name field on the custom component definition.

          The component is displayed as if it’s a Visualforce page. Consequently, if your component relies on attributes or on the content of the component tag’s body, this URL may generate results that you don’t expect. To more accurately test a custom component, add it to a Visualforce page and then view the page.

           
          Loading
          Salesforce Help | Article