Changing a UI Builder component background color based on database value

Nancy Aud2
Tera Contributor

I am building a UI builder page that is using a repeater with a stylized text component inside. I would like to change the background color of that text component based on a specific value from the database. (ie... if the value is "X" make the background color red, if it is "Y" make it blue otherwise make it yellow.) Does anyone have any ideas on how to accomplish this?

10 REPLIES 10

SO, would any of this apply "dynamically" client side for example if the context was a NEW record form in a UX workspace and while the client is updating a field this could be invoked dynamically to change the font color of the field based on data selected in the field?   So, for example re-creating the legacy VIP color change when selecting a user with a VIP indicator of true occuring dynamically while the client is picking the user?  ....I have gotten close using Declarative Action field decorator but am a little stuck on the "scripted client condition" to be able to evaluate to control the correct show/hide of the decorator.