Change Icon Image and Colour Dynamically
Question

Is it possible to change the colour of an icon and the image based on data criteria.


i.e. if x = y colour = Green and Image = Tick
else colour = Black and image = Right-arrow.


I can get the colour to change but not sure how to do the image.

Hello Matt,

If you are willing to save the images in the database, you could surely change/ assign images based on data criteria as documented here.

Regards,

AJ

mvp_badge
MVP

Hi Matt,

you can use IF widget to do this.

put your condition add images (icon) and color based on data condition. once which condition is True image and color show accordingly.


Regards

Rahul

Hi Matt,

can you check this link

https://amitj.outsystemscloud.com/DummyReactiveApp14/Screen1?_ts=637630644546359955

it can help to get an idea about changing icon.


DummyReactiveApp14.oml

Probably should have mentioned this is for a mobile app. Will your answer still work?

You can use it on Mobile, no problem!

Kind regards,

Márcio

Hello matt,

Here I have attached working URL and  OML for reference 

this will works for traditional,mobile,reactive as well 

it is just sample as per your need you will change icon,color and logic.

Thanks and Regards,

Akshay Deshpande

CSS.oml

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.