0

Help on changing record color

Hello,

I'm new to Ninox. I'm trying to change a record based on a value of a field:

I'm using script in "after update"

if Estado = "Aberto" then color("Green") else color("Red") end

But nothing happens. What i'm doing wrong?

Thanks

Joaquim

4 replies

null
    • Daniel_Berrow
    • 1 yr ago
    • Reported - view

    What are you trying to change the colour of? Your script will just return color(green) or color(red) without telling it where to set the colour

    Rather than have it in an "After Update" trigger, you'd need that script in a formula field and it will work

      • Joaquim_Boavida
      • 1 yr ago
      • Reported - view

        Thanks for your awnser.

      I'm trying to alter the color of all the record line.

      But, in alternative I can change only the "color" field. This is just to have a visual aid, if the work is completed or not.

      Joaquim 

      • Daniel_Berrow
      • 1 yr ago
      • Reported - view

       You can add conditional formatting into each of the lines of the view, with a formula function to check if the field is alberto

      • Joaquim_Boavida
      • 1 yr ago
      • Reported - view

       It worked. Thanks!

Content aside

  • 1 yr agoLast active
  • 4Replies
  • 74Views
  • 2 Following