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 Pattern to a Field

Prev Next

This article will show you how to add a pattern to a field.

Important Notes

  • “One-off” patterns can apply to fields; this is if you just type into the field of a schema instead of selecting one of the suggestions. These fields do not have a “name” and will show as Advanced

  • Pattern formatting uses RegEx (Regular Expression)

Who can use this feature?

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

Instructions

  1. Sign in to the HCMS

  2. Select the Content Types tab and choose a Content Type optionContent Types section showing various types including a highlighted Department entry.

  3. Click the Settings icon next to the field you would like to add a pattern to and select the Validation tabSettings icon with validation and editing options for the field.

  4. Click inside the Pattern field box, and a dropdown menu will appearRegex Pattern field on the Validation tab.

    Note:

    Not all fields will have the Pattern option.

  5. Select the Pattern you would like to add or create a new RegEx patternPattern suggestions on the Validation tab.

  6. Add a Pattern MessageThe Pattern Message field on the Validation tab.

  7. Click the Save buttonThe Save button on the Validation tab.