I am quite new to corvid. very little coding experience... On my site, I have a repeater with 6 containers. Each has an image and a button. The repeater is connected to a database named "INGREPPOMRÅDE". In this dataset, label the button gets its text/label from the column id "title". The buttons different labels are "BRÖST +", "KROPP +" and so on. I want each button, when clicked, to expand different sections under the section containing the repeater itself. These sections are already collapsed at loading. The different sections have id:s like "brostsektion", "kroppsektion" etc. I am totally at a anlost as to what to do as all buttons have the same ID and therefore execute the same action if I was to only add a OnClick function. How can I get different expansions depending on the different labels in the dataset? PLEASE PLEASE PLEASE help!!! SZ
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
You wrote: "all buttons have the same ID and therefore execute the same action if I was to only add a OnClick function"
A good place to start would be the API section on Repeated Item Scope. This will explain how to select a specific instance of a repeating element. Once you understand how that works, you'll be able to take the correct button action for each item.