Skip to main content
Question

Can you use decimal or RGB format for colors in formulas?

  • Aug 17, 2017 10:06 PM UTC
  • 0 replies
  • 57 views

I'm trying to use a Formula-Text field to color another text field. Can you use decimal or RGB format in a formula?(ex. rgb(178, 218, 155))
I'm currently using the following formula:
"<font color=red>" & [Crew - Foreman]
I know you can use the name of the color or a hex format, but I wanted to know if it could be done with an RGB format and, if so, how? I have already tried replacing "red" in the formula with different variations of "rgb(178, 218, 155)" and nothing works. I can't seem to find anyone who demonstrates a way to do this.
Thanks in advance!
This topic has been closed for replies.

try this
"<font style=\"color:rgb(178,218,155)\">" & [Crew - Foreman] & "</font>

  • Qrew Corporal
  • Aug 17, 2017 10:19 PM UTC
Try this:
"<span style='color:rgb(178, 218, 155)'>" & [field] & "</span>"
This tag <font> is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

It is another case where QuickBase's supported HTML tags is from the stone age.

http://help.quickbase.com/user-assistance/what_tags_can_i_use_in_quickbase_.html

  • Author
  • Observing
  • Aug 18, 2017 1:35 AM UTC
The "span" formula doesn't seem to be working for me, I'm not sure why. I tried messing with it but couldn't get it to work. The "font" formula did work though! 
Thank you very much!