--- title: "Add a Pattern to a Field" slug: "add-a-pattern-to-a-field" description: "This article will show you how to add a pattern to a field." updated: 2026-07-08T19:48:12Z published: 2026-07-08T19:48:12Z canonical: "www.civicplus.help/add-a-pattern-to-a-field" --- > ## 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 This article will show you how to add a pattern to a field. > [!NOTE] > 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) > [!TIP] > Who can use this feature? > > Owner | Developer | Publisher | Author (submit for review) ## Instructions [HCMS: Add a Pattern to a Field Tutorial](https://www.iorad.com/player/1577762/HCMS--Add-a-Pattern-to-a-Field-Tutorial) 1. [Sign in to the HCMS](/civicplus-help-center/docs/sign-in-to-the-hcms) 2. Select the **Content Types** tab and choose a **Content Type** option![Content Types section showing various types including a highlighted Department entry.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Select%20Content%20Type%20-%20HCMS.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A44%3A16Z&se=2026-11-21T22%3A44%3A16Z&sr=b&sp=r&sig=fjsZmGuYwq%2FJ1nYjtAHHpcLOYxO5rFGStTWVYE%2FjkHI%3D) 3. Click the **Settings** icon next to the field you would like to add a pattern to and select the **Validation** tab![Settings icon with validation and editing options for the field.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Content%20Type,%20Field%20Settings,%20Validation%20-%20HCMS.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A44%3A16Z&se=2026-11-21T22%3A44%3A16Z&sr=b&sp=r&sig=9W5tTkB8oo7ku4Bfdhl6yzJ%2BayxsQqtT9GF3GbpSaVQ%3D) 4. Click inside the **Pattern** field box, and a dropdown menu will appear![Regex Pattern field on the Validation tab.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Content%20Type,%20Regex%20Pattern%20-%20HCMS.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A44%3A16Z&se=2026-11-21T22%3A44%3A16Z&sr=b&sp=r&sig=L0rCI3DGcPAh04z7Vch3yJPxygBym%2B7wv29P%2BWGIFDI%3D) > [!WARNING] > **Note**: > > Not all fields will have the **Pattern** option. 5. Select the **Pattern** you would like to add or create a new RegEx pattern![Pattern suggestions on the Validation tab.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Content%20Type,%20Pattern%20Suggestions%20-%20HCMS.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A44%3A16Z&se=2026-11-21T22%3A44%3A16Z&sr=b&sp=r&sig=WOktD4fyjyUgg68eTTaTG0sgB2J%2BOKZOSYnqC9co0zQ%3D) 6. Add a **Pattern Message**![The Pattern Message field on the Validation tab.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Content%20Type,%20Pattern%20Message%20-%20HCMS.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A44%3A16Z&se=2026-11-21T22%3A44%3A16Z&sr=b&sp=r&sig=LVZGJo0bmPzT%2BQhcq8b34rUj1SaJMHtjHbyhRQFjb1Y%3D) 7. Click the **Save** button![The Save button on the Validation tab.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Content%20Type,%20Save%20Validation%20-%20HCMS.png?sv=2026-02-06&spr=https&st=2026-11-21T21%3A44%3A16Z&se=2026-11-21T22%3A44%3A16Z&sr=b&sp=r&sig=rvjs6U4b1EnOxiVNSdsarXdsBbv0XVJnMMYsS5QEkLk%3D)