Hello,
I am new to bubble and the whole world of web/app building in any capacity. I have been working my way through bootcamps and forums trying to find just enough to piece together what I need for an app I want to create a base version of and have been doing a pretty solid job but I have hit a wall.
Is there a way to get a specific image to display as the result of data represented in a different cell, which is based on the result of a formula? I am trying to build everything dynamically (I think this is the right usage) so I do not have to build 1,000 pages to represent the information.
Example: The user inputs a series of numbers based on possible scenarios. These numbers could be different for each user, but for the example let’s say they input the numbers 4, 5, 6. I have a text cell the represents the addition of these numbers and reads “15”. I want an image to appear on the page that correlates with 15. I want the same page to be able to run the same formula, and if the user inputs “1,2,3” the cell displays “6” and the image is a different image because the number being displayed is different.
If this is addressed in the forum or in a blog I will gladly take a redirection link.
Thanks in advance.
One way you can do this is with condition expressions.
For example:
Let’s assume that the total is stored in Expression Total.
Add the following condition for the image you want to display for when the total is 6:

Be sure to get the images to NOT be visible on page load. This way they will display only if their respective conditions are true.
Hope this helps.
I would store numbers and images in a option group or in a table in the DB. Then when the user enters numbers you should store the sum in a custom state and then reference the custom state for the text box that shows the sum. Finally, have a group of thing the table/option group with images and use the sum (stored in the custom state) to select the right record corresponding to the sum. Then within that group use an image element to show the image related to that number.
I am working on this, I will let you know if I can crack it. May have to do some retooling of my DB to line it all up right.
I am going to try this but it may take some real reworking of my DB. I will respond if I can crack it.
Best of luck. It seemed from your OP that you were looking for conditional imagery. If I read it correctly, then there shouldn’t need to be a DB reworking, just adding a independent table or option group with a number and image field.
Took me way longer to crack this than it should have, but I finally did. Thanks for the advice.