---
schema_version: "1"
id: 6b15ca002654d1ea107bf76bef316a6918d36a6eb8c31b9814d5399a16ea1483
title: Setting the Default Value of Input Fields
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/siteforce_data_fields_value.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.siteforce_data_fields_value.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b8b5d8088d1a2ed681aeedb29abad5c85190d51305ef7c78e4aa1802b637fe94
description: 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.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Setting the Default Value of Input Fields

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.

### 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="d191180e74">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d191180e74 ">To build, edit, and manage Site.com sites:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d191180e74 ">
              <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 at the site level</p>
            </td>

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

When used with a field's Hidden Field property, which hides the field on the form or page, the default value is a useful tool for submitting data that you don't want your users to see. For example, you could add a hidden field that uses the Global Property option to track when a form is submitted.

![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 Default field values that are already set on the object aren't transferred to Site.com.

To set the default value of a field:

1. Select the field.
2. Click **Configure** in the Properties pane.
3. Select the source of the default value.
    
     
    | Option | Description |
    | --- | --- |
    | Fixed Value | Use when you want to specify the value. For example, for a text field, you could add default text. Alternatively, if the field is a picklist, you can select a default value from the list. |
    | URL Query String | Use when you want to pass variable content via a URL to the item when the page loads. For example, if you're working with a picklist field, you could pass variable information, such as location, to filter the list and display only items from that location. See [Data Filtering Examples](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_repeater_examples.htm&release=264.0.0&type=5 "When working with data repeaters, data tables, and data functions, you can filter the data you retrieve in many ways. In this topic, we explore two options— fixed values and URL query strings—to illustrate some common filtering techniques.") for similar scenarios using data repeaters. |
    | Global Property | Use when you want to use a fixed value from the site, such as the current date or current time. |
    | Request Header | Use when you want to use a value from the browser, such as the host header or browser version. |
4. Set the default value.
5. Click **Save**.

#### 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")
- [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.")
- [Adding a Form to the Page](https://help.salesforce.com/s/articleView?id=platform.siteforce_data_form.htm&release=264.0.0&type=5 "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.")