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.

Conditional Formatting of fields in reports

Featured Replies

Hi,

I had a look thru the topics to see if this had been covered and didn't find anything.

I want to either create a PDF or print a report and have a certain field which would normally be in black text (eg SalesTaxPaid) turn [color:red]RED if it equals $0.00 and I was wondering if this was possible. I have tried to work it out and havent succeeded, possibly due to poor brain power.

FMP 8.5 does not support conditional formatting, it was introcuded in FMP 9.0.

However you could make a calc field that does the work:

Case( 



SalesTaxPaid <= 0 ; TextColor( SalesTaxPaid ; RGB( 255 ; 0 ; 0 ) ) ; 



SalesTaxPaid 



)

  • Author

Hi Vaughan,

Thanks heaps for replying. I tried it and the zero GST went red but the others disappeared. Can you please tell me the calculation for

if GST = 0 then red, otherwise black

cheers mate

  • Author

I worked it out, I was missing a bracket - just wondering, did u intend yours to be a CASE or an IF

You can use Case or IF in this "case"... ;p

I tend to use case almost all time over If just because it is easier to add more conditions later if need be.

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.