Restricting The Type and Length of a Textbox Input
- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Restricting The Type and Length of a Textbox Input
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Example Lab Article
While 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
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 article.
Was this article helpful?