I dont know how to set a random background-color unique with each other for my contact list in mobile app.. I'm using List & Card Item.

for example:

Contact 1 - green background color

Contact 2 - yellow background color

Contact 3 - blue background color

is there a way in OutSystems that can do this?


Hi Lawrence,

You can use an expression in the style classes. Specify custom style classes according to your wishes to get different background colors.

Hope this helps.

Hi Sam!

Thanks for the reply.  I used the Card  widget instead of Card Item.
Now I can customize the whole space of card widget unlike card item, and from there apply the background color.

will now try to use an expression to set a random unique color for every item added on the list..