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.

Conditional Format of Container Field

Featured Replies

Hello,

I have a database with two tables. In the first table (rgbtext) there is a text field "Category" with 3 other number fields "red" "green" "blue"

The second table (rgbcontainer) has a text field "Category" and there is a join between the category fields.

In the second table I have a calculation field called category_color that uses the TextColor function and pulls the values from the red, green & blue fields

I also have a container in the second table which I'd would also like to display the same rgb color as the category_color. So it needs to pull the "red","green" & "blue" values from the rgbtext table.

I've messed with the conditional formating a little but I'm not quite getting how this can be accomplished.

Any help would be appreciated.

rgbcontainer.zip

2 ways: with a container OR with a conditional formatted text object.

rgbcontainerMod.zip

  • Author

Thank you for your attention to this.

Is there not a way to pass the values from the Red Green & Blue fields to autogenerate the color of the container fields?

It looks like in both methods you provide you had to "set" the rgb color rather than pulling from the data in the fields.

Is there not a way to pass the values from the Red Green & Blue fields to autogenerate the color of the container fields?

No, at least not without a plugin. And you cannot use calculated color values in conditional formatting either.

There is another way, though - see:

http://fmforums.com/forum/showpost.php?post/302292/

  • Author

Ok, thank you.

  • Author

Interesting technique with the swatch. How does the swatch become a bar rather than "gggggg"?

Another technique ( simpler ) !

rgbVW.zip

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.