- User clicks Latin DJ
- User is brought to DJ page
- DJ page loads a repeater that displays DJ’s with Latin DJs.
First question!
Why you need to redirect to another page after have been done a selection?
Why not doing all the processes on the same page, saving uneccessary loading times?
How can I retrieve the value from the button being clicked in the repeater? (or do I need to change my approach to retrieving such information?)
Second: If you want to generate a real customized and good working page, try to go the coding-way and using Wix-Data, or at least you can use the DATASET, but not connected through the PROPERTY-PANEL.
In this case you maybe will have a little bit more of coding work, but the result will be more satisfying.
console.log("Text of button clicked: "+$w('#djsCategoryButton').label+".");
All you will get here is the label of your button.
To solve your issue…you can try first…
$w.onReady(()=>{
$w('#repeater1').onItemReady(($i, iData, index)=>{
$i('#djsCategoryButton').onClick(()=>{
console.log("Clicked-Data: ", iData);
console.log("INDEX: ", index);
});
});
});
But there are of course better options.