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.

How do you get a field to change color?

Featured Replies

I have several fields on my layout and their background is gray.

Is there a way to have FMP 7 change the field background/fill color to clear when data is entered into it??

This way, a quick glance at the layout will show what fields need input, etc.

Thank you in advance...

You need an additional calculation field for every entry field you want this feature plus a global field. Define the global field as Container and paste a little rectangle with the wanted background/fill color and pattern into it (in Browse mode). The calculation fields need also be of result Container and have a formula like:

If (AnyEntryField = ""; g_coloredBackground; "")

Now place every calculation field exactly under its entry field: Define borders and background for the calc, as you want the field to look like, if there is value. The entry field itself should be opaque (no fill, no borders, only text).

  • 2 weeks later...
  • Author

Thanks for the advice- I tried it and it works- just 2 questions...

1. If I set all those fields (approx 20) to calculations, it slows down my solution- I presume b/c it is recalculating all of them. I tried making those fields container fields with the same calculation.- and this is a little faster. Is there a way to prevent this slowdown?

2. When those fields are set as containers with the specified calculation, it does not highlight previous records that had those fields missing. I tried doing a relookup, but this didn't work (I guess b/c these are calculations, not lookups...) Is there a way to update these fields on prev entered records so that empty fields will stick out with the differnt background color?

Thank you for all of your help...

  • 2 weeks later...

There appears to be a simpler way, since you have 7. Only one calculation for all fields. Field Factory

  • Author

MoonShadow-

Thank you VERY much- I tried your solution and loved it. It has really changed my database and let me eliminate over 80 redundant fields!

Thanks again!

80 fields! Wow, you must have had a background calc for every field. smile.gif

I'm glad you found it helpful; please note however, that it's not my demo. wink.gif

Oh, your signature cracked me up! Thanks for making my evening.

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.