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.

merge fields: how do I get rid of extra space?

Featured Replies

Merging a name:

Field1: FirstName; Field 2: MiddleName1 Field3: MiddleName2 (some people have 2 middle names); Field4: LastName

In Layout, I use the insert merge field function to put the fields together and I leave a single space between the inner merged fields. However, if the person does not have a middle name(s) I am left with extra spaces that make it look askew.

Example: John Jacob Jinglehimer Smith would have the appropriate blank space behind Jacob and Jinglehimer. However, if his name is John Smith with no middle names it will come out John Smith with 3 blank spaces between John and Smith.

I guess I could put no spaces between the merge fields and try to figure out a way so that the individual fields automatically have a blank character space at the end. (Is that feasible?)

Should I do this with a calculation field (I don't know how). For example, Name= Field1 + Field2 + Field3 + Field4.

Please advise.

Doug Lazenby

BTW, in this post I tried to put John Smith with 3 blank spaces between John and Smith but the sofware automatically closed that gap to a single space.

Most of the time we create a calc for the full name to display in merge format.

Something along the lines of

First Name &

If ( IsEmpty (Middle Name 1);""; " " & Middle Name 1 ) &

If ( IsEmpty (Middle Name 2);""; " " & Middle Name 2 ) &

If ( IsEmpty (Last Name);""; " " & Last Name )

Make sure your result is text

HTH

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.