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.

How can I filter out empty fields??

Featured Replies

  • Newbies

Hi,

I created a layout that has around 15 fields in it, and a script to go along with it that automatically creates an e-mail message in Outlook and pastes these fields into the body text -- one per line -- so that it can be sent to a vendor (it's essentially just a parts list).

Everything works very well, but my only problem is that I don't always fill out all 15 fields, and thus when FileMaker pastes them into the e-mail, there are gaps between the fields. Again, it pastes one field per line...so if I don't fill out fields 8 through 14 for example, then there's a gap of six blank lines between field 7 and 15.

Is there any way I can tell FileMaker to only paste the fields that are filled out (i.e., have a value in them) and ignore the empty ones??

Thanks for your help-

RRT

Robbie:

Welcome to the Forums. There are a couple of ways to do this. You can use a Case statement for each field, or you can check for a field's emptiness with "not IsEmpty". The latter is easier to comprehend:

For each item, encapsulate the copy & paste within an If statement:

If [not IsEmpty(FieldA)]

cut

paste

End If

-Stanley

Question: Are the records in a portal? If they are, you could set up an omit button in the portal layout and omit them manually. Kurt

  • Author
  • Newbies

Here's how I currently have things set up. The body text of my e-mail is actually a "defined field," and it's simply placed there by the script...so I could either try to fix things in the define field area, or possibly replace all of this with a script?

"ATMID: "&ATMID&"

Ignore my last question. I was thinking records, not fields. Duh. K

You need to modify your calculation -

&Case(not IsEmpty(picklist model database::Universal Part 1),

picklist model database::Universal Part 1&"

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.