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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions