Im displaying Profile Images which are stored within the DB. When an image URL cant be found nothing will be displayed.
None of the Conditions like “image is empty” or “image url is empty” works because technically the Image Value in the DB isnt empty.
Is there a workaround where i can detect the error and replace that image with an other one?
What I would do is add another field in the DB with yes/no values (default blank, which Bubble interprets as no). When a user uploads a profile image, change the value to yes. When it’s time to display the image, display it if the second field is yes, or display the alternate image if the second field is no.
The way I tend to handle these situations is to have a group (preferably a repeating element) on the page with two elements (images in this case), both initially hidden and collapsed. I would load the yes/no value into a custom state. Load the profile image URL (which could be nothing) into the first element and the default image URL into the second. Show the first if the custom state is yes and the second if the custom state is no.