Add a Geolocation Field to a Content Type

Prev Next

This article will show you how to add the Geolocation field to a Content Type in the HCMS.

Who can use this feature?

Owner | Developer | Publisher | Author (submit for approval)  

Instructions

  1. Navigate to Content Types on the left-hand side and select your desired Content Type Content Type tab in left navigation with the category selected.

  2. Click Add FieldPlus sign button in lower left corner.

  3. Select GeolocationGeolocation button in the Add Field menu page.

  4. Add the Field Name Field name.

    Note: The field name can only contain letters with no spaces and cannot be changed. The display name can be edited in the Label section.

  5. Select Create and edit fieldCreate and edit field button.

  6. Configure Common fields Common tab in fields.

    • Name (non-editable): Name of the field in the API response

    • Label: Define the display name for the field for documentation and user interfaces

    • Hints: Define some hints for the user and editor for the field for documentation and user interfaces

    • Tags: Add tags to annotate your field for automation processes

  7. Configure Validation fields Validation tab fields.

    Note: You must select State and/or ZIP fields under Editing for State and ZIP code patterns/messages to activate. This ensures that the user enters the correct State and/or ZIP code.

    • Required: Check to indicate the Geolocation field as required

    • State Pattern: Add Regex pattern

    • State Pattern Message: Add a message

    • ZIP Code Pattern: Add Regex Pattern

    • ZIP Code Pattern Message: Add a message

  8. Configure Editing fields Editing tab in fields.

    • Editor URL: Add a URL to your plugin if you use a custom editor

    • Editor: Choose Map or No Map (display or do not display map)

    • Display Fields: Select which fields to display (Address 1, Address 2, City, State, ZIP Code)

  9. Click Save and close Save and close button.