# Create custom fields

To add a custom field to a content item, perform the following:

1. Open the module where you want to add a custom field.\
   To add a custom field for pages, in the main menu, click *Pages*.\
   To add a custom field for static content items, in the main menu, click *Content*, then one of the content items under *Types of Content*.\
   For example, *Images* or *Events*.\
   To add a custom field for dynamic content items, in the main menu, click *Administration » Module Builder*, then click the name of the dynamic module to which you want to add a custom field.

2. For static content items, click ![Settings icon](https://www.progress.com/documentation/sitefinity-cms/assets/90eb1db28552053bb0806c168d6e5fe2/settings.jpg "Settings") (*Settings for \<content type>*) and on the right side of the screen, click *Custom Fields for \<content type>*.\
   The *Custom fields* page appears. The system displays a list of all custom and default fields for that content type or page.

   > info  **NOTE**: You can add and delete custom fields, but you cannot add or delete default fields.

3. To add a custom field, click the *Add a field…* button.\
   For static content items, this button is in the *Custom fields* section, and for dynamic content items, it is in the *Fields of this item* section.\
   The *Add a field* window opens.

4. In the *Type* dropdown box, select what type of input will be entered in this custom field.\
   Different types of input require the use of different widgets for entering data.
   * If you choose *Number* type of field, the *Decimal places* dropdown box appears.\
     Select the number of decimal places after the decimal point that can be entered in this field.
   * If you choose *Classification* type of field, the *Classification* dropdown box appears.\
     Select the type of classification you want to create.\
     The dropdown box contains the predefined types of classifications – *Categories* and *Tags*, and any other custom classifications you have created. For more information, see [Create custom classifications](https://www.progress.com/documentation/sitefinity-cms/create-custom-classifications).
   * If you choose *Related data*, proceed to [Related data custom field](https://www.progress.com/documentation/sitefinity-cms/add-a-related-data-custom-field).
   * If you choose *Related media*, proceed to [Related media custom field](https://www.progress.com/documentation/sitefinity-cms/add-a-related-media-custom-field).
   * If you choose *Link*, proceed to [Link custom field](https://www.progress.com/documentation/sitefinity-cms/link-custom-field).

5. Enter a name for the field.\
   The name of the field is different from its label. The field's name serves as a reference for that field in the backend.

   > info **NOTE**: For some field types, such as *Classification,* the *Name* field is automatically generated and cannot be changed.

6. If you select *This is a hidden field* checkbox, the custom field is not visible on the website or in the backend, and you can only use it in the code.\
   For static content types, you can later unhide the field, by clicking it in section *Custom fields* and changing the selection on the *Appearance* tab.\
   Dynamic content types do not support editing their hidden fields.

7. In the *Interface widget for entering data* dropdown box, you select the widget which the creator or editor of the content item or page will use to complete the field.

   Each type of field you select in the *Type* dropdown box has a default widget for entering data. The following table contains the list of all types of fields together with a description of what is displayed when creating and editing the content item for which the field is created:

    <table cellspacing="0" cellpadding="0" class="DocTable">
    <colgroup><col><col></colgroup>
    <tbody>
    <tr>
    <td class="myClassTableHeaderFirstCol" width="30%">

   <strong>Type of field</strong>

    </td>
    <td>

   <strong>Appearance of the custom field</strong>

    </td>
    </tr>
    <tr>
    <td width="20%">

   <em>Short text</em>

    </td>
    <td>

   An input field with labels and instructions, which you add in <em>Step 9</em>.

    </td>
    </tr>
    <tr>
    <td>

   <em>Long text</em>

    </td>
    <td>

   The text editor. For more information, see [Text editor](https://www.progress.com/documentation/sitefinity-cms/work-with-the-new-content-editor).

   > info **NOTE**: Suppose you are adding the long text field to a dynamic content type that you want to use for entering some system content, such as JavaScript code or Kendo UI templates. In such case, you can disable the parsing of any links, including image links. If the link is a link to an image, the system displays the full path to the image, which means that the link will be broken, if you change the host.\
   > To do this, select *More options* » *Disable Link Parser*.

    </td>
    </tr>
    <tr>
    <td>

   <em>Multiple choice</em>

    </td>
    <td>

   Radio buttons with labels, which you add in <em>Step 9</em>.

    </td>
    </tr>
    <tr>
    <td>

   <em>Yes / No</em>

    </td>
    <td>

   A checkbox, which you select for <em>Yes</em> and deselect for <em>No</em>.

    </td>
    </tr>
    <tr>
    <td>

   <em>Currency</em>

    </td>
    <td>

   An input field with labels and instructions, which you add in <em>Step 9</em>.

    </td>
    </tr>
    <tr>
    <td>

   <em>Date and Time</em>

    </td>
    <td>

   An input field with labels and instructions, which you add in <em>Step 9</em>.

    </td>
    </tr>
    <tr>
    <td>

   <em>Number</em>

    </td>
    <td>

   An input field with labels and instructions, which you add in <em>Step 9</em>.

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Classification</em>

    </td>
    <td>

   * If in the *Interface widget for entering data* dropdown box, you have selected *Textbox selector*, the system displays an input field where you type new classifications or a link where you select from the existing classifications.\\

   For more information, see [Add categories and tags to a content item](https://www.progress.com/documentation/sitefinity-cms/add-categories-and-tags-to-content-items) » *Adding tags*.

   * If in the *Interface widget for entering data* dropdown box, you have selected *Tree-like selector*, the system displays a tree structure of existing classifications, from which you can select.\\

   For more information, see [Add categories and tags to a content item](https://www.progress.com/documentation/sitefinity-cms/add-categories-and-tags-to-content-items) » *Adding categories*.

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Related data</em>

    </td>
    <td>

   A content items selector, which you use to associate the content item you are creating with another content item of a different type.

   For more information, see [Related data custom field](https://www.progress.com/documentation/sitefinity-cms/add-a-related-data-custom-field).

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Related media</em>

    </td>
    <td>

   A content items selector, which you use to associate the content item you are creating with a media type.

   This field gives you the option to add images, videos, and documents to a content item or page using a selector widget.

   For more information, see [Related media custom field](https://www.progress.com/documentation/sitefinity-cms/add-a-related-media-custom-field).

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Address</em>

    </td>
    <td>

   > info **NOTE**: This field is available only for dynamic modules. For more information see [Address custom field](https://www.progress.com/documentation/sitefinity-cms/address-custom-field).

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Search engine optimization</em>

    </td>
    <td>

   This field is not shown in the frontend, and you do not need to set up its appearance.

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Social media (OpenGraph)</em>

    </td>
    <td>

   This field is not shown in the frontend, and you do not need to set up its appearance.

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>GUID</em>

    </td>
    <td>

   > info **NOTE**: You usually use GUIDs only programmatically and do not expose them to content creators or site visitors. For more information, see [GUID custom field](https://www.progress.com/documentation/sitefinity-cms/guid-custom-field).

    </td>
    </tr>
    <tr>
    <td class="myClassTableFooterFirstCol">

   <em>Array of GUIDs</em>

    </td>
    <td>

   > info **NOTE**: You usually use GUIDs only programmatically and do not expose them to content creators or site visitors. For more information, see [Array of GUIDs](https://www.progress.com/documentation/sitefinity-cms/array-of-guids-custom-field).

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

8. Expand the *Advanced* section if you want to change the database and the SQL database type of the custom field, if you want to specify the name of the column of the database table where the custom field is added, and if you want to make additional advanced settings.

   Check the *Allow empty values* checkbox when the field is not required and site users can leave it empty. If you deselect this checkbox, the field becomes mandatory.

9. Click *Continue*.\
   A window appears where you must configure the appearance of the custom field, such as labels and instructions.

10. Perform one of the following:

* If in the *Type* input field, you have selected *Short text*, *Long text*, *Yes / No*, *Currency*, *Date and Time*, *Number*, or *Classification*, perform the configuration procedure for Textbox » *Label and texts* and *Limitations* tabs.
* If in *Type* input field, you have selected *Multiple choice*, perform the configuration procedure for Checkboxes » *Label and texts* tabs.

11. Click the *Appearance* tab and select where you want to display the custom field you have created.

The *Appearance* tab is not available in dynamic content types.

* If you do not want to display the custom field on all screens where you work with the content item, you can select the checkboxes of only those screens where you want the field to be displayed. To do this, select *Some screens where you work with \<content type> in the Backend…* and select the screens where you want the custom field to appear.

  > info **NOTE**: When you are adding a custom field to *Images*, *Videos*, or *Document*, this field is displayed on the upload screen, when you upload items via the [Image widget](https://www.progress.com/documentation/sitefinity-cms/image-widget-mvc), [Video widget](https://www.progress.com/documentation/sitefinity-cms/video-widget-mvc), or [Document link widget](https://www.progress.com/documentation/sitefinity-cms/document-link-widget-mvc) widgets. If you do not want to display the custom fields, deselect the upload screens.
* If in *Step 6* you have made the field a hidden field, the radio button *Nowhere. This is a hidden field* is selected on the *Appearance* tab when you open the field for editing. If you change the selection, the field is no longer hidden.
* If the field is not hidden, you can hide it by selecting the *Nowhere. This is a hidden field* radio button.

1. On the *Appearance* tab, in the *CSS class* input field, you can choose a class name for the custom field if later you want to set a CSS style for this field.

2. Click *Done*.\
   The new field appears in *Custom fields* section.\
   If you want to delete a custom field, click ![](https://www.progress.com/documentation/sitefinity-cms/assets/b810e0c30dd0c81088194e02d6e65fb1/delete-trash.png "delete trash").

3. Click *Save changes*.\
   To go back to the page with the content items, click *Go back*.
