0

style() to a Number field

Good morning all. I have this on a number field, but not woking.

let Resta := 'A pagar' - Pagado;
styled(text(Resta), if Resta > 0 then
"#FFEE00"
else
if Resta < 0 then "Orange" else "white" end
end)

1 reply

null
    • Nick
    • 4 yrs ago
    • Reported - view

    As far as I know, styled() does not work in numeric fields.

    Try a formula field (result will be text).

Content aside

  • 4 yrs agoLast active
  • 1Replies
  • 1472Views