Hello, I have tried to do the same as the video https://www.youtube.com/watch?v=bprVct9I8uw to limit characters on my Wix repeater but I don’t understand why it is not working.
$w.onReady(() => {
$w("#DatasetMarques").onReady(() => {
$w("#Repeater1").onItemReady(($item, itemData, index) => {
let theItem = itemData.descriptionCourte;
var description = theItem.substr(0,55);
$item("#Text14").text = description + " . . . ";
});
});
});
I don’t understand because the name of the dataset is good (“#DatasetMarques”), the repeater is called (“#Repeater1”), and the text I want to limit is called ‘‘descriptionCourte’’ in the database and the text on the repeater is “#Text14”. I am stuck, does someone has a solution ?
Thank You