Phone numbers in edit mode
International phone numbers begin with a country code and use the following format:
+phoneCountryCode phoneNumber extensionNumberFor ease of entering
phone information, it is possible to configure the GlobalPhoneInputSet widget to
show a list of Region Code
values in PolicyCenter from which
the user can chose. For PolicyCenter
to show the Region Code
drop-down list, the following must be true:
- Configuration parameter AlwaysShowPhoneWidgetRegionCode
in config.xml must be
set to
true. - The user must initially enter a plus sign in the phone number field.
If the user initially enters a plus sign (+) in the phone number field, the
GlobalPhoneInputSet widget
issues a post-on-change event to expose a Region Code drop-down list. Application
logic maps the region code to a country code by using CountryCodeToRegionCode.xml and
identifies the corresponding country. PolicyCenter formats the phone number
based on the user’s phone region and the country selected for the phone
number. For example:
User phone region |
Phone number country |
PolicyCenter format |
|---|---|---|
|
|
Domestic United States |
|
|
International French |
| FR |
|
Domestic French |
| FR |
|
International United States |
If a user enters a numeric phone number without first entering a country code, then PolicyCenter invokes only the format action on a targeted post-on-change event. Also, PolicyCenter invokes only the format action if the country code is the same as the user’s selected default, or, if none, the default configured for the server.
See also
