Conditional formatting in a repeating panel

What I’m trying to do:

In one column in my table I store vendors, some vendor names are very long. In the repeating panel where I display these I’d like to evaluate their length, if it’s over 20 characters, I’d display ‘vendor_name’+"…" to indicate ‘more…’

What I’ve tried and what’s not working:

I see in the docs how to use data bindings to combine data table columns as in ‘name’ == table.firstname + table.lastname. I don’t see how to do conditional formatting here

Hi there,

Could you do something like this?

vendor_name if len(vendor_name) < 20 else 'vendor_name ...'
2 Likes

worked very well, thanks

1 Like