---
schema_version: "1"
id: f033d6fcea227649cb41021e608d21afcfab4c01a2c238e4829ccdb29d80e5db
title: Preference Forms
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/preference_center_about_forms.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.preference_center_about_forms.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e1c96209cef5e49add8cc03c35b87e36e2458f394b9e8fe238da1ed30781861c
description: Preference Manager offers two methods for creating preference forms. You can create forms that work with Apex or forms that are populated from customizable templates.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Preference Forms

Preference Manager offers two methods for creating preference forms. You can create forms that work with Apex or forms that are populated from customizable templates.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience and Salesforce Classic in <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

With the Apex-based method, you create an Apex class in the Pref\_center namespace. The class is used to load the form data and to create or update data in your objects when a form is completed and submitted. After you create an Apex class, use Preference Builder to select elements of your form to populate a blank workspace.

With Consent Templates, you choose from four available template types. Then you build a template by choosing which of your brands, data use purposes, consent channels, or subscriptions that you want to include. At the click of a button, a template can populate a new form that is ready to publish.

After you create a preference form using either method, you can customize certain elements. If you choose to use a CSS style sheet, you can modify most attributes for your text components, including form headings and descriptions. For Lightning Web Components, such as buttons and dropdown lists, you can modify the padding and margins.

- **[Create Business Brands for Preference Manager](https://help.salesforce.com/s/articleView?id=xcloud.preference_manager_brands_dups.htm&release=264.0.0&type=5)**  
    Create Business Brands to add to your preference forms in Preference Manager.
- **[Create Data Use Purposes for Preference Manager](https://help.salesforce.com/s/articleView?id=xcloud.privacy_create_data_use_purposes.htm&release=264.0.0&type=5)**  
    Create Data Use Purposes to add to your preference forms in Preference Manager.
- **[Create an Apex Class for Preference Manager](https://help.salesforce.com/s/articleView?id=xcloud.preference_center_apex_class.htm&release=264.0.0&type=5)**  
    Use Preference Builder along with the Pref\_center Apex namespace to create forms with advanced customizations. The Pref\_center Apex namespace represents the former name of the Preference Manager feature.
- **[Create Preference Forms with Apex](https://help.salesforce.com/s/articleView?id=xcloud.pref_center_create_form.htm&release=264.0.0&type=5)**  
    Use the Preference Builder to configure a preference form by selecting elements to populate onto a blank workspace.
- **[About Consent Templates](https://help.salesforce.com/s/articleView?id=xcloud.preference_center_about_templates.htm&release=264.0.0&type=5)**  
    Create reusable templates to capture preferences based on the objects that you want to use to store the consent information. You can also structure how your preference forms collect consent based on your brands, data use purposes, and subscriptions.
- **[Create Reusable Consent Templates](https://help.salesforce.com/s/articleView?id=xcloud.preference_center_consent_templates.htm&release=264.0.0&type=5)**  
    In the Preference Manager app, you can create and publish as many consent templates as you want with the different template types. Then you use the activated templates to create the preference forms.
- **[Create a Template-Based Preference Form](https://help.salesforce.com/s/articleView?id=xcloud.preference_manager_create_form.htm&release=264.0.0&type=5)**  
    After you activate a consent template, turn it into a preference form.
- **[Customize Template-Based Forms in Preference Builder](https://help.salesforce.com/s/articleView?id=xcloud.preference_center_customizations.htm&release=264.0.0&type=5)**  
    When you create consent templates in Preference Manager, you have the option to customize forms populated from the templates.
- **[Design Web-Embedded Forms with CSS](https://help.salesforce.com/s/articleView?id=xcloud.design_forms_css.htm&release=264.0.0&type=5)**  
    With Preference Manager, you can embed consent and preference forms on external websites and on Salesforce-hosted pages like Visualforce, Lightning Web Components (LWC), and Experience Cloud sites. To design your forms with custom branding and layouts, use Cascading Style Sheets (CSS) and custom CSS classes. To apply custom styles, define CSS rules in your website’s global stylesheet or apply inline styles on Salesforce pages to control the appearance of specific form elements.