Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Formatting and Sorting Phone Numbers

Featured Replies

Greetings all;

I have phone numbers stored into the database, however some of them are formatted as (01) 2345 6789 and others are 01 2345 6789.

What i want is it to check to see if it is formatted as "" and if so do this code

"(" & Left ( ${Phone Number1 (Imported)} ; 2) & ")"  & " " & Middle ( ${Phone Number1 (Imported)}; 4; 4) & " "  & Right ( ${Phone Number1 (Imported)} ; 4)

otherwise just copy the "phone number imported" to the field "phone number"

Isn't better to apply the same formula to ALL your records ?

Something like:

Let(

n = Filter ( PhoneNumber ; 1234567890 ) ;

If ( Length ( n ) = 10 ; "(" & Left ( n ; 2 ) & ") " & Middle ( n ; 3 ; 4 ) & " " & Right ( n ; 4 ) )

)

  • Author

Sweet that worked,

Thanks for the help..

Here is the coding i used incase anyone else wants the code.

Let(

n = Filter ( ${Phone Number1 (Imported)} ; 1234567890 ) ;

If ( Length ( n ) = 10 ; "(" & Left ( n ; 2 ) & ") " & Middle ( n ; 3 ; 4 ) & " " & Right ( n ; 4 ) )

)

  • Author

Greetings all;

I have a database where phone numbers are entered, however some of the numbers are mobile and some are home phones.

For example

(07) 55555555

07 55555555

0400 000 000

What i want to do is make it so that if the field has a mobile number then it paste the number into the mobile field, if it has a home number then it paste it into the home number field.

i was thinking about possibly making it so that if the number starts with 04******** then it is a mobile.

However i dont know how to make the formular to check that.

Typically, all phone numbers are entered in the same field and a second field indicates their type (usually the choices of type are from a value list). I usually have phone in a child table to People.

  • Author

Typically, all phone numbers are entered in the same field and a second field indicates their type (usually the choices of type are from a value list). I usually have phone in a child table to People.

Yea, that isnt how this is going to be set up. So is there a way of searching and if it is one thing putting it on Filed A, if another Field B?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.