I have a marketplace and on the product’s page I have difficulites showing the first image from the gallery in the preview large image. It stays empty/white until a picture from the gallery has been clicked. I’m using custom state but for some reason is not working. Could someone have a look in my workflow and tell me where is my mistake?
In the group which contains the preview image and the gallery repeating group, I set a custom state selected_image_item as an image. Then I created a workflow when this group is clicked to set a state to an element. The element is this same group and custom state is the same selected_image_item and the value is parent group’s product’s gallery’s first item.
The gallery is a repeating group and there is a workflow when an image is clicked to show in the large image preview. However now it stopped working as the state workflow is not working.
hm do you mean the workflow which takes you from the products list to the individual product page? What element should have the same state, the page itself?
p.s. sorry if my questions are very dummy, I’m not a bubble developer and just learning how to create my own website now
Ok here is an example that you can look at that uses a state that we set on the ‘page is loaded’ workflow so the image isn’t blank by default. Check it out:
many thanks for your time and the effort showing me this. I tried copy the settings but it still not working for me. When loading the page the preview is still empty. However clicking on the pictures in the gallery is working now. Could you please check if the next steps are right? I can’t see where my mistake is on the way…
I put two states on the page: image title and large image as type image:
To avoid having to create a page is load workflow, you could set the initial content of your larger image as the first item in the repeating group, and then simply create a conditional statement for when the custom state is not empty, at which point you display the image from that state in the larger image.