Documentation Index

Fetch the complete documentation index at: https://www.civicplus.help/llms.txt

Use this file to discover all available pages before exploring further.

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. Sign in to the HCMS

  2. Navigate to Content Types on the left-hand side and select your desired Content Type Content Types section showing various types including a highlighted Department entry.

  3. Click Add FieldList of fields with a highlighted button to add a new field.

  4. Select GeolocationGeolocation highlighted on the Add Field page.

  5. Add the Field Name Input field for entering a field name in a user interface design.

    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.

  6. Select Create and edit fieldButtons for creating and editing fields in a user interface layout.

  7. Configure Common fields Form fields for editing an address, including name, label, hints, and tags.

    • 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

  8. Configure Validation fields Form fields for state and ZIP code validation with regex patterns and messages.

    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

  9. Configure Editing fields Editing field settings with options for address and map display 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)

  10. Click Save and close The Save and close button is highlighted on the content type page.