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.

Handling Blank Fields in Merge Field Bulleted List

Featured Replies

  • Newbies

I have 5 different "fact" fields that I am outputting in a merge field.

The challenge I have is when one of the fact fields is blank, I get a orphaned bullet point with no content.

Is there a way to build conditionality into the merge field so that bullets are omitted if the following field is blank?

Make a calc field with the formula:

Case ( Trim ( FieldA ) = "" ; "" ; "• " & FieldA ) 

& "¶" & 

Case ( Trim ( FieldB ) = "" ; "" ; "• " & FieldB ) 

& "¶" & 

Case ( Trim ( FieldC ) = "" ; "" ; "• " & FieldC )

& "¶" & 

Case ( Trim ( FieldD ) = "" ; "" ; "• " & FieldD )

& "¶" & 

Case ( Trim ( FieldE ) = "" ; "" ; "• " & FieldE )

The result will be a list without 'empty bullets', but with 'empty returns'. You can strip these out with the custom function RemoveEmptyValues

If you don't want to use a custom function you might try to use the Substitute function to get rid of the superfluous returns.

Success,

Henk

Or you can use:

"• " & Substitute ( List ( fieldA ; fieldB ; fieldC ; fieldD ; fieldE ) ; ¶ ; "¶• " )

... which eliminates the blank lines if any of the fields are blank. It's just another approach. You might also consider placing it inside a web viewer which would eliminate the calculation field alltogether.

Oh Henk! You modified your post! Ah well, I've leave mine anyway. :wink2:

Oh! And Evan? Welcome to FM Forums!! :laugh2:

Edited by Guest
Added second Oh!

Oh Henk! You modified your post! Ah well, I've leave mine anyway.

????????

BTW LaRetta: Nice formula (using the list function) ...

Edited by Guest
Added credit to LaRetta

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.