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.

Trim first and last two characters

Featured Replies

Trying to trim characters from both the left and right of a value in one field. There are no breaks or symbols within the value.

For example, the following value is in my "full_ticket_number" field:

2900686073681910

In a separate calc field I need to have the "29" from the left and the "0" from the right removed to provide the value:

0068607368191

In this example, the "29" and the "0" seem to be some sort of control character placed there by the issuer, which have no use for me in my solution.

Of course the value is unique for each record so I can't just have the calculation look for certain characters to apply the function to. I've tried to combine both the Left and Right functions, but FM is providing errors I can't seem to solve.

Advice much appreciated!

3 minutes ago, madman411 said:

I've tried to combine both the Left and Right functions

Try the Middle() function:

Middle ( full_ticket_number ; 3 ; Length ( full_ticket_number ) - 3 )

If all ticket numbers have the same length, you can shorten it to:

Middle ( full_ticket_number ; 3 ; 13 )

 

  • Author

Thanks, Comment. This worked a charm.

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.