I have a listed repeater which is connected to my database.
This works well and for each row in the database a container is created with some textboxes. Except, that the initial image of the first container is being displayed also for all the other containers which are created. The ‘first or example’ - container of the repeater has an image field #image40. I would like to let #image40 display everytime the corresponding image of the database ''free1" of column image1 for each row.
The code I use so far is like this ( this is created to click on the #image40 field and direct to the dynamic page):
import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
Keep in mind that whether you use the forEachItem() function as @sapirh suggests, or you use the onItemReady() function as you’ve already attempted, you need to use the Repeated Item Scope in those functions.
Hi @benibrodi , thanks for your reply. I tried what you explained. But first I don’t understand why I should remove the onClick function because now nothing is triggered when I click on the #repeatedImage ( for my project it is #image40). Second where is the connection with the database to collect the image forEachitem()? I saw your website that it works for you indeed. Could you send me a copy of your page code from the page ( https://noe342.wixsite.com/website/activites ) if possible?
But I don’t get what you wanna have with your “image” click? What should happen when you click on the image?
I thought you wanna go directly to the Dynamic-Page, the same effect like in my project.
Or am I wrong?