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.

Need some help changing font color of field based on certain criteria...???

Featured Replies

We have an Inventory table that, of course, holds our current inventory. We also have an Auctions table that stores all of our eBay auction data for inventory that we have posted.

My goal here is to highlight the ItemNumber of any item in Inventory (list view) that needs an auction posted.

Any item could have a bunch of auction records created for it. Auction records have a status field with values: Current, Winner, Loser.

I know how to use the TextColor function to change the color of a field's text based on an If/Then, for instance. But what I need is a calc. field that will be a 1 or 0 based on whether or not there are any current auctions for that item. If there are current records set NeedsAuctionPosted to a 0. If there are not any current auctions set NeedsAuctionPosted to a 1. Then my text color could look at NeedsAuctionPosted to decide whether to change the font color not.

Any information I can get on how to create a field that can search auctions records with the item's ItemNumber and set another field to 1 or 0 based on whether or not any of the current auction records were Current or not would be greatly appreciated.

Of course, if there's a better way to do this all together I'd love to hear that as well. Thanks!

You can do this with two calculation fields:

A calculation field in the Auctions table, that returns 1 if the auction is current (this could be based on the status field, or directly on expiry date - if there is one).

Then, in the Inventory table, define a calculation field =

not Sum ( Auctions::cCurrent )

For both fields, set the result type to Number.

  • Author

Yup, that did it. Thanks a million!!!

Im not sure if you can help, but I'm attempting to do something similar. Depending on the status of a job, a status field changes. I recently made a new post; is there anyway you could help me with the textcolor command?

  • Author

http://www.filemaker.com/help/FunctionsRef-388.html

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.