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.

Substitute function with multiple (nesting) substitutions

Featured Replies

I have a calculated field which I want to be the field 'Title' with all occurrences of some characters (spaces, apostrophes, commas etc.) removed.

This has worked fine when only substituting one character but I cannot make it work when I want to remove more than one character.

I have tried:

Lower ( Substitute ( LeftWords( Title ; 3 ) ; [" ";"_"] ; ["'";""] ))

>ERROR: 'Field cannot be found'

and nesting:

Lower( Substitute ( Substitute( LeftWords( Title , 3 ) , "_" , "" ) ) , "'" , "" )

> ERROR 'Too few seperators'

Neither works. What am I doing wrong?

Thanks for your help

I can se you're using FM7'ish syntax but your profile talks of server 5?

--sd

  • Author

I am using FM6 with Server 5.5

Try ;)

Lower (

Substitute ( Substitute (

LeftWords ( Title , 3 ) ,

"_" , "" ) ,

"'" , "" )

)

  • Author

Thanks that's it

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.