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 not print empty fields

Featured Replies

I have FM5, Mac. I have a 4 page layout with 16 boxes containing 5 fields of patient prescription information. Not all patients have meds enough to fill out the entire 4 pages. I want to avoid printing four pages for all 400 patients, many pages would be blank.

Any help?

Make sure you have the med info inside a repeating field. Then set your sliding/printing to 'slide up based on all above' for that med field and also for whatever is below it (footer type info). This will automatically collapse the med field to just print rows that have information in them.

Cael.

  • Author

Hey thanks Cael. Sounds like that will work. I appreciate your quick reply. Mark

  • Author

Cael (or any other FM5 wiz):

Your suggestion worked very well one of my layouts. That layout has no graphics, just text fields. My second layout tracks when meds are given. It has a series of check boxes to track time and date. The check boxes are a graphic. I can't figure out how to treat the graphic in a similar way to the repeating text.

So the question is: How can I craft the layout so that only the graphics with associated filled text fields print?

Seems like a tough one to me.

Mark

If each graphic (in a container field) has an associated text field, you can create a calculated graphics field and make the calculated field blank if the associated text field is empty.

CalcGraphic (calculation, container) =

If(IsEmpty(TextField), "", GraphicField)

-bd

  • Author

bd:

Thanks a million for the suggestion. Though thoroughly intimidated by scripts, I'll give it a go!

Mark

Go back a few steps...

Don't use repeating fields. Never. Use a portal instead, it's much more flexible.

The way to remove excess space is to usde the sliding/printing feature. This allows FMP to make the field or enclosing part shrink-fit to the text.

  • Author

Vaughan

I tried to add a portal but one of the fields is a container field and apparently FMP won't allow that kind of relationship. Any ideas?

  • Author

bd:

How do I "associate" the text field with the graphic container field?

Mark

  • 2 weeks later...

Err, I dunnno why you'd want to relate to a container field!

  • Author

Vaughan:

Right. Who needs container fields when there are cats and dogs out there. Much better companions. I found some tedious work around my problem. A clunky solution, but a solution nonetheless. Thanks for your help

What I meant was this: say I have a db of people, each record has staffID, name, etc, and an photo in a container field.

If I wanted to make a relationship to get the photo, I'd make the relationship on StaffID or another text or number field, not the container field (cannot do it anyway). So build the relationship on StaffID, then bring the container field across through the relationship.

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.