> For the complete documentation index, see [llms.txt](https://jolzee.gitbook.io/leopard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jolzee.gitbook.io/leopard/components/field-masks.md).

# Field Masks

## Mask Legend

| Character | Description                                                       |
| --------- | ----------------------------------------------------------------- |
| #         | Any digit                                                         |
| A         | Any capital letter                                                |
| a         | Any small letter                                                  |
| N         | Any capital alphanumeric character                                |
| n         | Any small alphanumeric character                                  |
| X         | Any special symbol (-!$%^&\*()\_+\|\~=\`{}\[]:";'<>?,./) or space |

## Examples

| Type              | Mask                      |
| ----------------- | ------------------------- |
| credit-card       | #### - #### - #### - #### |
| date-with-time    | ##/##/#### ##:##          |
| phone             | (###) ### - ####          |
| social            | ###-##-####               |
| time              | ##:##                     |
| time-with-seconds | ##:##:##                  |

## Output Parameters

Just add the following as an output parameter to a node which is asking for a user input where a mask is required.

{% code title="Will force the UI to accept a phone number" %}

```
inputMask = (###) ### - ####
```

{% endcode %}

{% hint style="info" %}
You can also override the help text that is shown in the input field.&#x20;

## Output Parameter

```
inputHelpText = Enter a phone number
```

{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jolzee.gitbook.io/leopard/components/field-masks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
