Hi I want to convert all my dataset titles to all caps in a repeater. Although my code kind of works, it only takes the first element of the dataset and repeats it. Does anyone know what’s wrong?
$w.onRender(function () { let currentItem = $w('#dataset1').getCurrentItem(); $w('#text11').text = currentItem.title.toUpperCase(); });
Thanks
You didn’t write a code for repeaters. Try this one:
$w.onReady( function() { $w("#dataset1").onReady( () => { $w("#repeater1").onItemReady( ($item, itemData, index) => { $item("#text11").text = itemData.title.toUpperCase(); }) }) })
That works. Thank you for your help!
You’re welcome