Zip In Masked Text Box
Comments
-
How do I format a masked text box to allow a zip plus 4 but the plus 4 may not always be there.
-
[font=Roboto, Arial, Helvetica, sans-serif]So lets assume that the formats were specifically looking for is "12345" OR "12345-6789." So the hyphen must be included. First, set your Masked Text Box to custom. (documentation) Then for your custom mask you will enter ^d{5}(?:[-]d{4})?$ Heres an explanation of this expression. ^ = Start of the string. d{5} = Match 5 digits (first zip code format) (?:…) = Grouping [-] = Match a hyphen (indicates the second zip code format)* d{4} = Match 4 digits (the second part of the second format) …? = The pattern before it is optional (for the first format) $ = End of the string.[/font]
Howdy, Stranger!
Categories
- 4.4K All Categories
- 78 General
- 13 Training
- 209 Installation / Setup
- 1.1K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 709 Forms
- 345 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 186 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 229 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions