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.

Change Color of Field Background based on Result of a calculation

Featured Replies

Good Morning,

I have 2 questions, the first is more esoteric.

1. I am almost certain question 2 has been asked and answered on this forum, but I can't find it by searching. If someone reads question 2 will you please give me a suggestion for what is the proper way to search the archive(s)for these types of questions?

2. Main Question: Is it possible to change the background fill color of a field based on the result of a calclulation? basically:

If Point total =

0 to 25 background color = white

26 to 50 background color = red

51 to 100 background color = Blue

etc.

Any help would be greatly appreciated.

Thanks,

Steve

Edited by Guest

  • Author

Mr. Vodka...

Once again I owe you a Vodka Martini or your beverage of choice!

This worked perfectly and is exactly what I needed. You are making me look like a genius at work. :yay:

thanks again,

Steve

  • 3 months later...

Is there a way to just highlight every other row no matter what?

Is there a way to just highlight every other row no matter what?

Check the "Alternate background fill" option and set a color/patten in the the Body part's definition.

Is the "Alternate background fill" an option that is for FMP 6 or is it a different version? I've searched everywhere that I can think.

Sorry, I thought we were talking about 8.5.

This feature was new in FM7, I think.

I think that you could create similarly, a global field to store the background image. Then a calc to display the image stretched to the size of each row.

Case (not Mod(Status (CurrentRecordNumber), 2), gImage )

If you are talking about a Portal on in Form View, you can set the Portal to do this. If you want this in a List View, there are a few sample files out there that show how to do this, do a search for Alternate at www.databasepros.com. However, if you are wanting to do this in Table View, it can not be done.

HTH

Lee

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.