Telephone Number Fields

ExtraView has the ability to enter phone numbers which will be formatted automatically and will, to a reasonable extent, be verified as correct numbers.  For example, US entries that being with the number 0 will be assumed to be incorrect.  This feature will also automatically format international telephone numbers.  When a field is configured to view international telephone numbers, it will also display a flag of the country.  On an add or edit screen, when making a selection, the field will look like this:

 

The phone number field is created with a display type of text field .The feature is enabled with these steps:

  • Consider whether you want to format and store phone numbers from more than the USA.  If so, you want to ensure that the behavior setting named PHONE_NUM_STORE_COUNTRY_CODE has a value of YES.  The fields will then store the country code along with the phone number and will display a country flag in the selection list.  If the value is NO, the assumption is that all phone numbers are within the USA and there is no need to store the +1 prefix
  • Create a field with a display type of text to storethe phone number
  • Place a layout cell attribute on the form where the feature is to be enabled, or place a global attribute of PHONE_NUMBER on the field.  It is of more general use to use the global attribute within the data dictionary, as this will enable the feature on all forms where the field is placed
  • Place the field on the add and edit screens where it is required.

Once configured, the user only needs to enter the digits of the phone number, and the appropriate spacing and formatting is applied automatically.