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.

Colored Fields

Featured Replies

My database has 30 small fields (not a value list) that can be difficult to detect if they are filled in. I want the field to stand out if there is information in it.

Is there a way for a field to change to a color if information is entered in it? Or, perhaps a heavy colored border could be used.

This surely would be helpful in reading the info.

Thanks in advance.

ABCRobstown

Start by creating a global container field (xGlobal) and place a swatch of color in it. The swatch can be created in layout mode with the rectangle tool but it doesn't have to be big. Just 1 pixel by one pixel will do the job. Then, create the following calculation for each of your 30 fields:

Case(not IsEmpty(Field1); xGlobal)

Each time you write the formula, change the reference of Field1 to Field2, etc.

When you place the calculation fields on the layout, use the Graphic menu item under the Format menu to set the calculation field result to Enlarge and uncheck the "maintain original proportions" check box. This will make the small swatch enlarge to the size of the calculation field.

Finally, place the calculation fields behind each of the data entry fields using the Send Back and Send Backward features from the Arrange menu. If you make the data entry fields transparent, the color will show through. If you keep the data entry fields opaque and make them a little larger than the data entry fields, they will show a solid border.

It might also be a good idea to set the calculation fields to not allow entry via the Field Format menu item so people can't click into them.

  • Author

Sorry but the formula will not be accepted. It keeps saying too few separators at the end of the formula.

For Young & Reckless, I am using FMP 6 and am unable to open your attachment.

Sorry, I should have used commas instead of semi-colons since you are using FileMaker 6. Here is the revised formula.

Case(not IsEmpty(Field1), xGlobal)

Always forgetting the subtle facts me... Sorry...

And if they had the European Version, then it was a semicolon anyway.

:B

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.