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 to change background color based on field?

Featured Replies

  • Newbies

Is there a way to change the background color of a layout based on a field? I want to signify a specific type of user by changing the background color of the form when based on a field.

Use a calculated container field as the background for your layout. Create fields:

gRed (global, container)

Background (calculation, container) = Case (YourTest, gRed, "")

Replace "YourTest" with a test for the condition you want to cause the background to show a color. You can also use two colors, store each color you wish to use in a global container field by drawing a rectangle in layout mode and making the lines and fill the color you wish. Copy the rectangle in layout mode, switch to browse mode, click in the color storage container and paste. Be sure to set the background container "graphic" formatting to "reduce or enlarge" and uncheck "maintain proportions". The background color globals must be setup with the file opened in client FM with the file not hosted on FM Server.

-bd

That is sweet! I like the thought of changing my background to signify to the user that they're on a new record better than flashing the words at them! I'm going to try it now!

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.