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.

Combining 4 fields, getting extra spaces!

Featured Replies

  • Newbies

Hi all-

I'm trying to take 4 fields (Prefix, FirstName, MiddleInitial, LastName) and combine them into 1 field "WholeName." Below is my calc:

If(Prefix <> " " and MiddleInitial <> " ", Prefix & " " & FirstName & " " & MiddleInitial & " " & LastName, If(Prefix <> " " and MiddleInitial = " ", Prefix & " " & FirstName & " " & LastName, If(Prefix = " " and MiddleInitial <> " ", FirstName & " " & MiddleInitial & " " & LastName, If(Prefix = " " and MiddleInitial = " ", FirstName & " " & LastName, "Check This Contact Name"))))

It ends up returning a space before the first name if there is no prefix and spaces in the middle if there is no middle initial. What am I doing wrong?

Thanks for any help.

Hi Poster:

Try this calculation,

Case(not IsEmpty(Prefix), Prefix & " ") &

Case(not IsEmpty(FirstName), FirstName & " ") &

Case(not IsEmpty(MiddleInitial), MiddleInitial & " ") &

Case(not IsEmpty(LastName), LastName

)

HTH

Lee laugh.gif

  • Author
  • Newbies

That's perfect! Thank you so much! I'm going to have to read up on how to use Case statements.

Thanks again.

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.