Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Phone Number Format

Avatar

Avatar
Validate 1
Level 2
SonnyRD
Level 2

Likes

7 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
SonnyRD
Level 2

Likes

7 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
SonnyRD
Level 2

17-03-2017

Hi all -

Does anyone know if there is a way to force the storage and display of phone numbers as 999-999-9999? Our instance is defaulted to US regional settings, but phone numbers are always stored and displayed as 0999 999-9999.

Thanks,

Sonny

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct Reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct Reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

18-03-2017

Hi Sonny,

At present, the functionality is limited and doesn't allow you to define your own regular expressions for showcasing phone number in a specific format.

Currently, the phone number format is defined by data policy named phone described in schema xtk:common.

If you wish to bypass the default setup, you can do the following

extend the nms:recipient schema, and create the attribute <attribute desc="xxx" name="mobilePhone" type="string" label="yyy" length="32" dataPolicy="none"/>

We are removing the default data policy associated with this attribute. Then you can save the phone number as you want as it is a string field.

You can also define a computed string on this attribute which can show the mobile number as you want it.

Hope this helps.

Regards,

Vipul

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
SonnyRD
Level 2

Likes

7 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
SonnyRD
Level 2

Likes

7 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
SonnyRD
Level 2

21-03-2017

Thanks, Vipul. Both options sound good; definitely worth a test or two!

Sonny