--- title: "Restricting The Type and Length of a Textbox Input" slug: "restricting-the-type-and-length-of-a-textbox-input" updated: 2021-03-12T15:05:29Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/restricting-the-type-and-length-of-a-textbox-input" --- > ## 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. # Restricting The Type and Length of a Textbox Input 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.9.2 | | **Root Folder** | Example Lab - Numeric Only Textbox | | **Modules** | None | | **Dependencies** | None | This Example Lab project demonstrates how to restrict the accepted input of a Form textbox to a specific input type and length. --- ## Explanation This Example Lab project allows for the input of a Form textbox to be restricted to a number that's exactly 13 digits long. The Flow displays a Form using the 'Masked Text Box' Form component and with the 'Value Type' as 'Custom'. This will allow a RegEx equation for only a numeric expression of the desired length to be set. Any input that is not all numbers and is not exactly 13 digits long will not be submittable. Reference Articles[Masked Textbox Form Component](https://documentation.decisions.com/docs/advanced-masked-textbox) [Creating Forms](https://documentation.decisions.com/docs/creating-your-first-form) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-962.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.9.2 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[NumericOnlyTextbox].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BNumericOnlyTextbox%5D.zip) ---