Community X.

Connect with other creators, share ideas, give feedback and get the latest product updates.

Sep 12
Edited: Sep 12

ADD DIFFERENT ACTIONS TO BUTTONS IN REPEATER

I am quite new to Editor X.


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, 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 lost as to what to do as all buttons have the same ID and therefore execute the same action if I was to only add an OnClick function.


How can I get different expansions depending on the different labels in the dataset?


PLEASE PLEASE PLEASE help!!!


SZ


Editor X

Design your boldest creations.