How to apply conditional formatting to a form view field?
I have a standard form view that includes a computed float field as follows.
I would like to change the color of the field based on it's value.
0 < x_margin < 0.1 == red
0.1 < x_margin < 0.2 == yellow
x_margin > 0.2 == green
I know I can set the color of the field like this
<field name="x_margin" style="color:red"/>
but I can't figure out how to apply conditional formatting to a style. Everything I've found in searching seems to only apply to the tree view. I would like to apply this to a field in a form view.