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.

change field color depending on result of field

Featured Replies

can i assign a background color on a field depending on the result of the field. eg field="Yes" background="Green", field="No" background="Red"

Yes. You can do it with either a repeating global container field or serveral global container fields to store the background colours.

For your case, define 2 global container fields:

g_Red_Background

g_Green_Background

You need to fill these containers with the appropriate colour by going to layout mode, drawing a little red line, copying it, go to browse mode and paste into the g_Red_Background... similar for green.

Now define 1 calculation field (container) called Text_Background which =

if(MyText="Yes",g_Green_Background,if(MyText="No",g_Red_Background,""))

Format this field (graphic) to expand to fill and uncheck the maintain proportions. Also format it as transparent and not to allow entry. Place this field behind your MyText field on the layout, ensuring that MyText is transparent.

Now "yes" will have a green background, "No" will have a red background and "" will have your layout background colour.

Hi Aussie,

Yes you can implement background colors that change based on a value entered into a field. Instead of trying to explain what to do, I created a sample file. I will e-mail it to you.

Take a look at the:

- Define Fields...

- Define Value Lists...

- Layout

- ETC., ETC.

There also a 'surprise' that is helpful to users!

Hope this helps...

Bob Kundinger

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.