Group background colour condition

Hey bubbler’s
I’ve built a group with a background image of users profile logo as an icon. Conditionally it it displays the users name truncated to 1, so just first initial. I also change the background to red and text to white. But I want to display a different background colour depending on the initial letter. What would be the condition for that?


Hey @Rob_07 :wave:

I know it’s a little tricky. Let me see if I can help a bit.

Maybe try this:

Parent Group’s C Case’s Clinic’s name :truncated to 1 is G

That would be the condition if the letter is G.

I’m not really sure this is what you want though. :man_shrugging:t2:

Thanks for your answer. Yes that does work. But it’ll mean I’ll have to define a color for each letter of the alphabet. I was wondering if there was another more automated way. Using the alphabet was the idea initially, but I’m open to other suggestions so that each clinic has a different color when the profile inconvenience is empty.

That’s what I was thinking. I don’t think it’s the best way.

I would suggest using something like this random color plugin when a clinic is created and give them all a similar hue but just a little different.

Would that work? :man_shrugging:t2:

This topic was automatically closed after 70 days. New replies are no longer allowed.