> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/example-gallery/example-projects-for-parts/text-input-masking.md).

# Text Input Masking

## Overview

When you model a [text input](/release-9/platform-documentation/form-node-parts/text-input-numeric-input.md) field in your applications, you can use the 'Input Mask (RegEx)' function to require specific formatting in the input field using regular expressions.

## Text Mask

In this example project, the field formatting is set using a regular expression in the 'Input Mask (RegEx)' field so it only accepts the following: (^\[0-9]\*$).

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-ed0263a2d37b9e80c88034d79b90991d5aa4a9a0%2F8cfb9a90-da1c-4599-8a82-2baa5c72c98f.png?alt=media)

The 'Placeholder' field allows you to provide users with a hint about the characters they can use based on the the applied input mask. In the example, we show a watermark message stating 'Accepts only number eg:1234567'. If the user enters any characters other than numbers, the system will not display those characters in the text box.

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-c16beb0429963991f0115c6d1b3ddc688359c161%2F722b7207-0c3e-4494-8804-58da00432045.png?alt=media)

## Attachments

* [Text\_Input\_Mask.zip](https://github.com/logicnets/community-portal/tree/release-9/docs/.gitbook/assets/h4jx6t-Text_Input_Mask.zip)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/example-gallery/example-projects-for-parts/text-input-masking.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
