Skip 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.

Reformat Existing Phone numbers

Featured Replies

  • Newbies

I imported over 16k records from an Excel spreadsheet into Filemaker 10. In Excel, the phone numbers formated as (222) 222-2222. After import, I noticed all the phone numbers are now one long string (2222222222). Is there some way to reformat existing phone numbers? The phone field is currently set as text.

Any help would be appreciated. thanks.

Investigate this:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000799

--sd

Hi RJC, and welcome to the forum.

You can set up the field with the Auto Enter calculation that is shown in the Linked File.

You will also need to deal with the existing data.

I suggest that you use a loop script to modify your field. I used the calculation as shown in John Mark Osborne's file in the following script.

Go to Layout [ “YourPhoneNoField” ]

Go to Record/Request/Page

[ First ]

Loop

Set Field [ AlphaButtons::Phone; Let(

@NumbersOnly = Filter(AlphaButtons::Phone; "0123456789");

"(" & Left(@NumbersOnly; 3) & ") " &

Middle(@NumbersOnly; 4; 3) & "-" &

Right(@NumbersOnly; 4)

) ]

Go to Record/Request/Page

[ Next; Exit after last ]

End Loop

HTH

Lee

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.