Hi everyone !
My repeater shows only the last itemData duplicated in every repeated item. Any idea why ? here is my code :
var content = []
function refreshRepeater() {
$w("#dynamicDataset").onReady(() => {
wixData.query("Assessments")
.eq("title", $w('#dropdown1').value)
.find()
.then((results) => {
let firstItem = results.items[0];
content = firstItem.content
$w('#repeater1').data = content
$w("#repeater1").foreachItem(($item, itemData, index) => {
console.log(itemData)
// properly returns every item on the console
$w("#text68").text = itemData.question
$w('#radioGroup1').options = itemData.answers
});
})
})
}
Thank you so much to anyone who could have an answer