Question:
Can buttons inside a repeater have individual click actions listed inside dataset? Or do only buttons outside repeaters cooperate with datasets?
Product:
Wix Studio
What are you trying to achieve:
There are multiple retailers from which to buy the item. I have buttons inside different repeaters (to better manage the look/feel & spacing of buttons). I would like each button to link to the right retailer on each different item page.
What have you already tried:
First I tried adding the buttons & repeaters to the item pages and simply added the link URL to each button as you would with any normal button. But of course this made all the links the same on all the different item pages, regardless of it being a different item.
Next, I created URL fields in the dataset… unwieldy given how many there are and how long and narrow it makes my database, but whatever.
Then, I tried adding the repeater to the entire dataset. This deleted most of my buttons and renamed them with the button name in the first button. I could not add any more buttons to the repeater (manage completely grayed out) and if I changed the name of one button, all three would change. If I selected the “click action connects to” URL, it would make all the buttons identical.
I returned to my original repeater to try connecting it to the item dataset. This removes all the buttons but one and the “manage” is grayed out so I can’t add more buttons to test. I can link that one button to a click action, but this obviously doesn’t solve the problem.
Reverting again to my original repeater buttons, I tried to connect each individual buttons to both the entire dataset & the item dataset. Both deleted all buttons, only showing one that could not be added to:
I can find tutorials for repeaters. I can find tutorials for linking buttons to a dataset. I can find no documentation or tutorials for linking buttons to a dataset inside a repeater.
Additional information:
I have been able to successfully link individual buttons outside of a repeater to the (item) dataset and those are working properly on all item pages. But so far cannot figure out how to make the buttons inside repeaters work.