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.

Need help removing text from field

Featured Replies

Hi,

I'm using text in my delivery slip layout through a lookup field and want to remove text if "RO#" text is in the field

example: VS-321 The Severed Arm: Blu-Ray RO# 52975

i want to remove everything starting with "RO#" if the field contains it,

I know this can be done using LeftWords or RightWords but I can't get it done,

if anyone can help it would be much appreciated.

Thanks.

Pio

I would suggest:

Let ( [
pos = Position ( text ; " RO#" ; 1 ; 1 ) 
] ;
If ( pos ; Left ( text ; pos - 1 ) ; text )
)

 

  • Author

Thank you, that works perfect when I use my data viewer to test it,

but how would I use it in my field if I already have a looked-up value selected

sorry I don't know how to do both I can either select calculation or looked-up in my options for field.

You can incorporate a lookup in a calculation using the Lookup() function - say: 

Let ( [
text = Lookup ( Sourcetable::Sourcefield ) ;
pos = Position ( text ; " RO#" ; 1 ; 1 ) 
] ;
If ( pos ; Left ( text ; pos - 1 ) ; text )
)

This is assuming you need to have an independent copy of the looked up data, a copy that will not change if the lookup source field is modified. Otherwise you could simply use an unstored calculation field = 

Let ( [
pos = Position ( Sourcetable::Sourcefield ; " RO#" ; 1 ; 1 ) 
] ;
If ( pos ; Left ( Sourcetable::Sourcefield ; pos - 1 ) ; Sourcetable::Sourcefield )
)

 

  • Author

Thank you!! and thanks for taking the time to help. It works perfectly.

Pio

  • Author

Hi, 

What if I wanted to remove the"C" or any letter from my field

example of a field with a PO#: CG350C53

is there a way to remove the "C"s

thanks.

Pio

Use the Substitute() function.

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.