Templates Plugins Courses

Can bubble switch between images?

Can bubble switch between images according to the type of the file?
Lets say I uploaded an excel file. The image element need to display the logo of excel. And if I uploaded a word file, the image element need to display the logo of microsoft word. Is it possible in any way?

Hello @markhallak

Short answer it yes. :slight_smile:

Long answer it will depend on your setup and structure of the workflow/elements
Let’s say you have an event when an file is uploaded you apply a condition to change the logo to
image and change it’s logo. See the reference - https://bubble.io/reference#Events.ConditionTrue
https://bubble.io/reference#Workflow.condition
For elements there is proprieties concept:
https://bubble.io/reference#Elements.GeneralConcepts.State.properties

hope this helps.

Regards,
Dumitru.

I did as someone advised me to do. Is it good or there are disadvantages or thins to look after if I am using this method?
e12d08e25c41d77a8b999250fb6b6b43237d8aea