Hi everyone,
I am creating a multi-step form with a Multi-states box to allow customers to send us a personalized quote request. Everything is working, I’m quite proud of the result. I would like to take the concept further and allow customers to get additional information on products by clicking on the image that is presented within a repeater. The additional information would be displayed in a box that will be collapsed by default.
Here is what it looks like:
Since the button in the repeater has the same iD for each item, I am not able to write my code that will expand the additional information box. If the iDs had been different, I could have created 3 collapsed containers by default and created a different code for each button and each container.
I’m thinking that there is definitely a way to use a single default collapsed container that would expand each time a button is clicked on the repeater but would display the data specific to the product that is clicked on…
To do this, I imagine I would have to start by setting up a piece of code that would determine which product in my collection each repeater button refers to. But I have absolutely no idea how to do this.
I would like to use the collection of products from our store (Wix App).
Here is screenshot of the part of the code I started to write to try to produce this result (I tried to add a code snippet but the forum do not allows me to publish saying that there is a link. I really can’t find any link in that part of the code… ):
Here is the result :
As you can see, it works! (I know why my description appears like this, it’s already fixed). However, it will always display the same information no matter which button is clicked.
I hope someone can give me a solution!
Thanks a lot in advance!