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.

Custom formating a field

Featured Replies

Hi all!

Have a new question.
Is it possible to make FM do custom formating in a field?

Like I have one field with numbers.
These number can vary but are 9 numbers long.

Let's say I have the number: 574318762
How can I make FM format that number like this: 574 318 762
I seems to be unable to find any options for that in the layout.

As always grateful for help

JohanA

You will need to do that in a text field.

It’s call concatenate 

Left ( YourField ; 3 )  & " "  & Middle ( YourField ; 4 ; 3 )  & " "  & Right ( YourField ; 3 ) // if the source will always be 9 numbers

  • Author
16 minutes ago, Lee Smith said:

You will need to do that in a text field.

It’s call concatenate 

Left ( YourField ; 3 )  & " "  & Middle ( YourField ; 4 ; 3 )  & " "  & Right ( YourField ; 3 ) // if the source will always be 9 numbers

Big thanks, worked like a charm :)

If you are using this as an auto-entered calculation replacing existing value, I would suggest you make it =

Let (
digits = Filter ( Self ; "0123456789" )
;
Left ( digits ; 3 )  & " "  & Middle ( digits ; 4 ; 3 )  & " "  & Right ( digits ; 3 )
)

Otherwise you will have problems editing an existing entry. For example, if you try and modify "111 222 333" to "444 222 333" you will end up with "444  22 333" instead.

 

 

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.