Modules

filter

 

Objects/Functions

module (N/format/i18n)

SuiteScript 2.0

format.PhoneNumberFormatType

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=format.PhoneNumberFormatType for more information.

N/format/i18n Module
format.PhoneNumberFormatType
Enum Description: Holds the values for the phone number format. JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Type: enum
Module: N/format/i18n Module
Sibling Module Members: Phone Number Formatter Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=format.PhoneNumberFormatType

Example:

// Code Example 1
// Add additional code
//...
require(['N/format/i18n'],
function(format) {
log.debug("List of valid phone number format types:");
for (var fmtType in format.PhoneNumberFormatType) {
log.debug(fmtType);
}
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_158626858431.html