--- title: "Using a Custom Masked Textbox" slug: "using-a-custom-masked-textbox" updated: 2021-03-12T15:05:26Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/using-a-custom-masked-textbox" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Using a Custom Masked Textbox Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.4.0 | | **Root Folder** | Example Lab - Custom Mask Textbox | | **Modules** | None | | **Dependencies** | None | This Example Lab Project demonstrates how to use a custom masked textbox to restrict a user entry to a 10 digit phone number. --- ## Explanation This project displays a Form with a textbox that will only accept a 10 digit number as an input from the user. This is accomplished by selecting "custom" when adding the textbox Form component to the Form grid in the properties panel. Selecting the "Custom" option allows the user to apply a custom mask to the textbox, restricting entry type and length. In this example the input will be restricted to a number, 10 digits long by using the following mask "^\d{3}\-?\d{7}$". Furthermore by filling in the "Custom Display Mask" textbox option with "999-9999999" the user will also be shown "___-_______" when filling in the textbox to conform to the typical formatting of a 10 digit phone number. Reference Articles[Custom Masked Textbox](https://documentation.decisions.com/docs/en/advanced-masked-textbox) [Creating Forms](https://documentation.decisions.com/docs/en/creating-your-first-form) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screen%20Shot%202020-09-30%20at%2011.31.02%20AM(1).png)![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screen%20Shot%202020-09-30%20at%2011.30.51%20AM(1).png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.4.0 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[CustomMaskTextbox].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BCustomMaskTextbox%5D.zip) ---