# Address custom field

## Overview

The address field enables users to select an address for the dynamic content item.

> info **PREREQUISITES**: The *Address* custom field is available only when you create dynamic content types. For more information, see [Dynamic modules](https://www.progress.com/documentation/sitefinity-cms/dynamic-modules).

If you want to disable Geolocation API, perform the following:

1. In the Sitefinity CMS backend, navigate to *Administration » Settings » Advanced*.
2. In the treeview on the left, click *GeoLocations » Providers » Default*.
3. Deselect the *Enabled* checkbox and save your changes.

## Create an address custom field

To add an address field, perform the following:

1. Perform procedure [Create custom fields](https://www.progress.com/documentation/sitefinity-cms/create-custom-fields) » *Step 1* to *Step 5*.
2. Enter the name of the address 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.
3. In the *Type* dropdown box, select *Address*.
4. 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.

   > important **IMPORTANT**: Once you create a hidden field, you cannot edit its properties. Make sure you have configured all its properties before finishing creating it.
5. In the *Interface widget for entering data* dropdown box, you select the widget that the content item editor will use to complete the field.\
   The default widget is *Address and map*. You can configure how it behaves in *Step 9* below.
6. Expand the *Advanced* section if you want to change the SQL database type of the custom field or the name of the column of the database table where the custom field is added.\
   If you select the *Allow empty values* checkbox, the field is not required and can be left empty. If you deselect it, the field becomes mandatory.
7. Click *Continue*.\
   The *Address* Window opens.
8. In the *Label* input field, enter the label of the textbox.\
   For example, enter `Home address`.
9. Select the method for entering the address by choosing one of the following:

   | Method                 | Description                                                                                                                                        |
   | :--------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------- |
   | *Address form only*    | When creating a dynamic item, you can enter the *Country*, the *City*, the *Zip*, and the *Street*.                                                |
   | *Map only*             | When creating a dynamic item, you can pinpoint the address on the world map.                                                                       |
   | *Address form and map* | When creating a dynamic item, you can enter the *Country*, the *City*, the *Zip*, and the *Street* and also pinpoint the address on the world map. |

   > info **NOTE**  : To use a map for entering the address, you must set up Google Maps.\
   > For more information, see [Set up Google maps](https://www.progress.com/documentation/sitefinity-cms/administration-set-up-google-maps).
10. If you want to make the textbox mandatory, select *This is a required field*.
11. Click *Done*.\
    The new field appears in the *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").
12. Click *Finish*.
