Skip to main content

Change the background color of a cell programatically

  • August 13, 2023
  • 1 reply
  • 366 views

Forum|alt.badge.img+2

Hello, Airtable community!

I am writing an extension and I want to change the background color of particular cells if they match condition.

For example: There is a Price column and if the price is > 1000 I want this cell to have a red background.  I know there is a Color option on top of the table that do exactly the same. But I want to apply this rule to each table that come in this base for each number fields automatically. 

Thank you in advance!

1 reply

Forum|alt.badge.img+21
  • Inspiring
  • August 14, 2023

Hello @MvisiON 

Airtable cannot change the background color of cells like Excel.

You can use a conditional expression to add a color to the beginning of a row.
https://support.airtable.com/docs/record-coloring-by-conditions