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.
Hello everyone !
@Sayid, did you find the answer you were looking for? If so, could you share it with the rest of us? 🙏 @Yisrael (Wix), thank you for your help so far but, if you would allow some constructive feedback, I feel there are a few sub-optimal things going on with this support thread:
• the long article you redirect us towards seems to mention how to take repeater items link to different actions based on a connection between the repeater and a dataset by calling let$item=$w.at(event.context) ; however, the idea here is to rather have a different expand action which does not seem to be explained within the documentation you provided unless I'm mistaken ? • The list of examples you shared do not return anything when filtered with "repeater expand", "repeater", or "expand". • You seem to have invested more time moderating the chat rather than detailing or looking for an answer • The question is flagged as "solved" when the solution is not copy pasted within the thread. For me, sharing a lot of sources that do not clearly answer the question is the equivalent to redirecting us to Google or Wikipedia without having checked if what we seek was available For anyone else arriving here, I'll circle back once I found an answer to this. I think a mix of let$item=$w.at(event.context) and if statement based on a text content should do the trick ! 💡
Rather a harsh response by the moderator. This guy was just asking for help, and he used all caps in all of just 3 words (unless you are counting his button labels.) This is an example of being reprimanded rather than helpful, in the guise of "help." It is frustrating for newbies that there is a forum for developers, but no forum for non-developers, who post here because they don´t see anywhere else to ask and then get this type of response. Yes, you can call to get support and it is often very helpful, but that´s time consuming for users and it´s a cost for Wix. When I was with Squarespace I often just searched for the issue I was having and the answer was available online because another user at my level had asked and there was a helpful community who had already had the issue and posted about it, without having to generate a support request, and without being reprimanded and told I could pay for help. And oh yes, I know that this post violates guidelines but I think it needs to be said. And yes, I have raised this issue with support and through suggestion and other channels but it doesn´t get addressed.
Perfect! Thank you!
First, please observe the policies and guidelines, and DO NOT USE ALL CAPS.
Understand that this forum is a community of Corvid developers and users where various topics are discussed and information shared. It is not a support site.
Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block.
To learn about programming with Corvid, read the following articles that will help you start working with Corvid:
About Corvid by Wix - what Corvid is and what features it has.
Getting Started with Corvid by Wix - step-by-step tutorial on how to start using Corvid.
Onboarding to Corvid by Wix - introduction to Corvid with short tutorials.
If you find that you are having difficulty with code and need assistance, you may want to check out the Wix Marketplace - it's a place where you can look for Corvid experts for hire.