---
schema_version: "1"
id: e362d3807deb62b2ab0b488f7a6fcf3a8a2235e07b43cb25e16fe18c8aa3c23b
title: Adding a Form to the Page
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/siteforce_data_form.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 61a87ad1f189face2aa09b1ae1344c2ebd459209f5cab3f9e6219b1d8b0c6617
description: Use forms to collect data from your site visitors and submit the data to standard or custom Salesforce objects. Create web-to-lead forms, capture customer details, or gather feedback on your products or services.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Adding a Form to the Page

Use forms to collect data from your site visitors and submit the data to standard or custom Salesforce objects. Create web-to-lead forms, capture customer details, or gather feedback on your products or services.

### 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: Salesforce Classic</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Available for purchase in: <strong>Enterprise</strong>, <strong>Performance</strong>,
                and <strong>Unlimited</strong> Editions</p>
              <p style="margin-bottom:0;">Available (with limitations) in:
                <strong>Developer</strong> Edition
              </p>
            </td>

          </tr>
        </tbody>
      </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d96260e74">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d96260e74 ">To add a form to the page:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d96260e74 ">
              <p><samp class="parmname">Site.com Publisher User</samp> field enabled on the
                user detail page</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Site administrator or designer role
                assigned in Site.com Studio</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d96260e74 ">To edit the guest user profile:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d96260e74 ">
              <p><samp class="parmname">Site.com Publisher User</samp> field enabled on the
                user detail page</p>
              <p>AND</p>
              <p>Site administrator or designer role
                assigned in Site.com Studio</p>
              <p>AND</p>
              <p>Manage
                Users</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Customize Application</p>
            </td>

          </tr>
        </tbody>
      </table>

To add a form to a page:

1. Drag a **Form** from the Page Elements pane onto the page.
2. Select the Salesforce object that you want to submit data to.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)
    
    Note
    
    - For Site.com users, the drop-down list only displays objects that are available to guest users because site visitors access your public site via the Guest User license. To make other objects available, go to the guest user profile, enable the relevant object's Create permission, and refresh the list.
    - For Communities users, the drop-down list displays objects that may not be available to site visitors. For authenticated visitors, object access on public and private pages is controlled by their user profiles. For unauthenticated visitors, object access on public pages is controlled by the site’s guest user profile.
3. Add available fields to the form by double-clicking a field, or selecting it and clicking ![Add](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/siteforce_icon_moveright.png).
    
    All required fields are automatically added to the list of selected fields. However, you can hide required fields after you add the form to the page.
4. Reorder the list of selected fields by clicking **Move Up** or **Move Down**.
5. Click **Save**.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note When adding forms to authenticated community pages in Site.com, set the current user for Salesforce objects that require the Owner ID field. Setting the current user (as opposed to the default guest user) lets you identify the authenticated user when the form is submitted. To set the current user for the Owner ID field, select the field in the form, and click **Configure**. Under Field Properties in the Properties pane, select **Global Property** as the source, and select **Current userID** as the value.

After you add a form to the page, you can’t change the object it’s connected to. If you need to connect to a different object, you must replace the form.

You can use the form’s Properties pane to:

- See which object the form is connected to.
- Add a title to the top of the form.
- Specify what occurs when a user successfully submits the form.
- Change the appearance of the form by selecting a different theme.

- **[Add Input Fields to Forms or Pages](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_fields.htm&release=264.0.0&type=5)**  
    Add additional input fields to an existing form. Each input field binds to a field in the object the form is connected to. Add input fields directly to a page, panel, data repeater, or data table to build your own custom features using
- **[Editing Input Fields in a Form](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_fields_edit.htm&release=264.0.0&type=5)**  
    After you've added a form to the page, you can edit and reorder its fields.
- **[Input Field Types](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_field_types.htm&release=264.0.0&type=5)**  
    When adding input fields to a form or page, the following field types are available. However, if the object connected to a form doesn't contain a particular field type, you can't add that input field type to the form.
- **[Input Field Properties](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_field_props.htm&release=264.0.0&type=5)**  
    When adding or editing input fields on a form or page, use the options in the Field Properties section of the Properties pane to control how the selected input field functions.
- **[Setting the Default Value of Input Fields](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_fields_value.htm&release=264.0.0&type=5)**  
    You can set the default value of an input field that you add to a form or page. This automatically populates the input field with the value you specify when the page loads.
- **[Setting a Form's Submit Behavior](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_submit.htm&release=264.0.0&type=5)**  
    When your site visitors submit a form successfully, you can either redirect them to another page or display a message indicating that they were successful.
- **[Styling Forms](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_style.htm&release=264.0.0&type=5)**  
    Forms are styled using CSS themes that you can customize to match the design of your website.

#### See Also

- [Add Input Fields to Forms or Pages](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_fields.htm&release=264.0.0&type=5 "Add additional input fields to an existing form. Each input field binds to a field in the object the form is connected to. Add input fields directly to a page, panel, data repeater, or data table to build your own custom features using")
- [Input Field Types](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form_field_types.htm&release=264.0.0&type=5 "When adding input fields to a form or page, the following field types are available. However, if the object connected to a form doesn't contain a particular field type, you can't add that input field type to the form.")
- [Editing Input Fields in a Form](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_fields_edit.htm&release=264.0.0&type=5 "After you've added a form to the page, you can edit and reorder its fields.")