Apply different formatting to list items within a cell

Hello! Is it possible to apply different conditional formatting to list items within a cell? Or does formatting apply for ALL items in a cell?

For instance, I’d want different formatting for each person in the ‘invited’ column based on values in other tables.

Hi @Ross_Tesoriero,
Welcome to Coda Community! :handshake:

Unfortunately this is not possible.
You can somehow have different formatting conditions for the whole cell (or the entire row), but not within cell’s items.

However, for what I understand from, you could shift down by one level of cardinality and have rows containing the single attendee (and group them subsequently by invitation event, for instance).
In that case, the formatting would be straightforward.

I hope this helps.
Cheers!

1 Like

Hi Ross, welcome to the community (and I’m sure we talked before :wink: )

You cannot apply conditional formatting to individual list items in a cell via Coda UI. But you can employ some hidden formula magic to e.g. set colors and highlights via formulas (note that setting highlights based on kr-* classes is unsafe and care should be taken when composing such formulas):

e.g. some sort of

Invited.FormulaMap(
  CurrentValue.Status.Switch(
    "Available", _Color("kr-green-light-bg", CurrentValue.Name),
    "Busy", _Color("kr-red-light-bg", CurrentValue.Name),
    CurrentValue.Name
  )
)
1 Like