Conditionally set button color

Hello Retool team - would love the ability to be able to have different colors for a button given a value (or the ability to use JS to set a color). For instance, if I click on a button to turn a Status from In Progress to Complete, I'd like the ability for that button to change color from yellow to green to help transition between and reinforce the button state with color. If you allowed JavaScript inside the Background color custom box, that might be a good way to do it and allow me as the end user to return a color's hex code.

Not the end of the world, I can use a static color, but it is a nice visual cue...



Great idea, thanks for posting this @gilcrest!

This actually is possible now! More info in this thread: Conditionally set button color based on value