US Phone Number - Formatting on Infopath Form

M

mike_ni

Have been messing about with this and havent been able to get it
working. Phone numbers are being stored as one long string on the
database. I have added an additional display field to the schema and
dropped this field onto the infopath form.

D/B 1234567890
Field should be (123) 456 7890

concat("(", substring(../@PhoneDisplay, 1, 3), ")", substring(../
@PhoneDisplay, 4, 3), " ", substring(../@PhoneDisplay, 7, 4)) and this
produces : (((()()( )( )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top