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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions