How do I create a template for formatting phone numbers?
I'd like to ensure that my phone number fields have consistent formatting, even if I don't enter them consistently. Is there a way to specify the desired format? (e.g., for US phone numbers (###) ###-####)
I would expect that templated formatting could be applied to other types of fields (e.g., date, month/year, URL).
1Password Version: 6.6.4
Extension Version: Not Provided
OS Version: macOS 10.12.4
Sync Type: iCloud
Referrer: forum-search:field formatting
Comments
-
Hi @nekodan,
You can create Phone fields which will help somewhat, but not to the extent that you probably want. Unfortunately I can't think of anything we currently have that would enforce the specific formatting like that. It'd be a neat thing for to add one day though.
Rick
0 -
Hi Rick,
Thanks for the response. It looks like there are a couple of good libraries to accomplish this, at least for phone numbers:https://github.com/googlei18n/libphonenumber (Java, JavaScript)
https://github.com/iziz/libPhoneNumber-iOS (iOS, probably macOS too)Dan
0