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.

Changing drop down fill color

Featured Replies

How do I change the field fill(background)color to a predetermined color depending on the choice of a drop down selection?

For instance;

"Active" gets a green background

"Pending" gets a yellow background

"Inactive" gets a red background

  • Newbies

I have a similar question. We use version 5 for our summer camp. We have several fields with drop down choices of the current year (for yes answers) or no (when the parent does not give permission for something). We want the no responses to either be in red text or have the box turn red. I could not find a way to change the text color in the values list.

You will need for the field with the value list to be transparent. Then you will need a container field to store the colors (lets call it gBackground). Use a repeating container field of 3.

Then the calculation field with container result would be Case ( field = "Active"; gBackground; field = "Pending"; gBackground [2]; field = "Inactive"; gBackground [3] )

Put this field behind the transparent field that has your value list on it.

We want the no responses to either be in red text or have the box turn red. I could not find a way to change the text color in the values list.

You can not change the text color with FM5, but you can in the newer versions.

Also you can not change the color within the value list at all regardless of which version. You can only change the text after selecting it.

Here was an older post that was similar to what you wanted, but had step by step instructions.

Instructions

check out his thread Link, as I just posted an answer to the same question.

Lee

  • Author

Thanks Lee. That's a neat trick for changing the TEXT color. I was looking for a way to change the FILL or background color. Mr. Vodka provided me with a good solution to the fill color puzzle. Many thanks to all the Big Brains on this forum.

  • 3 weeks later...

One quick question. I am able to change the background color per your example. However the changes will only occur in the first two records. Why is that? After the first two records I can not get the background color to show up.

Without seeing your file, I would guess that, either your Calcualtion for the fill is being stored, or the Global Containers is not really a Global Storage.

Both of these options are found as Options for the Fields.

HTH

Lee

Found the problem. You were right, the field was not set as a Global field.

Thanks again

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.