Hi,
Is there a way to count the items of a repeater and transform it into text. I do not work with filters, so it should be quite easy I think. I am just not very good with code, so that's why I ask you :)
Thanks already!
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
WORKING1111
No... now they say Operation (Onready) not allowed on a unconfigured database
Like this? .. it doens;t work
I am trying :)
$w.onReady(function() { $w("#dynamicDataset").onReady( () => { $w("#text103").text = $w("#repeater2").data.length.toString(); });
$w.onReady(function() { $w("#text103").text = $w("#repeater2").data.length.toString(); }); Is this good? :)
I just don't know how to transform it into a solid code. Because know it doesn't work at my site
Because I already have the main part
$w("#text1").text = $w("#repeater1").data.length.toString();
But why can't you give the full code?
Have a good read of this section here.
https://support.wix.com/en/corvid-by-wix/basics
Sorry but I dont understand the $w.on.Ready
I don't know how to use it
This forum is to provide you with help and support for your code issues as you have asked the exact same question here.
https://www.wix.com/corvid/forum/community-discussion/couting-the-items-of-a-repeater
if you are wanting somebody to do all your code for you so that you can simply copy and paste it, then have a look at using Wix Arena.
https://www.wix.com/arena/web-designers/1
"I am really bad in code."
Well simply just asking for others to do it all for you so that you are just copying and pasting is not going to get you learning anything, use the info and the links that J.D. posted to teach yourself and learn how to code a little better. 😉
But I don't know how that works... Can't you make it for me? Sorry I am still a learner on wix corvid.
I tried it but the text remains the same. It doesn't show the number of items of the repeater
Sorry,
I am really bad in code.. How would it look like if I paste it completly?
Thanks!
$w("#text1").text = $w("#repeater1").data.length.toString();
and of course, put it inside $w.onReady(), and dataset.onReady() if needed.