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)

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Nick
    • Nick
    • 3 yrs ago
    • Reported - view

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

    Try a formula field (result will be text).

    Like
Like Follow
  • 3 yrs agoLast active
  • 1Replies
  • 1451Views