Forum Academy Marketplace Showcase Pricing Features

Elegant way to change image based on a things value?


I am wondering if anyone is having an elegant way of changing an image based on a value in a DB?

To put it in context I would like to display an image A when a value in the User thing “Field Image” is A. If the user change it to B than display Image B.

I thought about one way being to create a DB with the images… but looks like a bazooka solution for such a thing…

Then I thought about conditional properties. Could work I guess…

I’m wondering what would be the best in term of performance.

Any input?

You would do this with conditional properties.

It’s nice actually as if the value changes in the db, the image changes on screen in front of your eyes.

Thanks Richard ! It was my second guess but it is working.