Randomly sort items on page load
Randomly sort CMS lists, grid items or any children with one simple attribute when you refresh your page
How to Randomly Order Webflow List Items on Every Page Refresh
Firstly, make sure you have the VisualDX script before your </body>. Checkout the Quick Start for how to do this.
Add Short Random Attribute
Copy this attribute:
Select the Collection List of a Webflow CMS Collection and paste the attribute into the Custom Attributes Name field of a Webflow Collection List
OPTION Limit number of Coection Items
Limit the number of displayed items by adding a value. In this example we are displaying only two Collection Items by adding the number 2 to the Custom Attribute Value input
Publish and refresh page
How to Randomly Order Webflow List Items on Button Click
Copy this attribute:
Paste the attribute into the Custom Attributes Name field of Button, Link, or Custom Element
Publish
Sponsor the Magic and
Buy Me a Beer

VisualDX is a free JavaScript library made for Webflow nerds like yourself. No ads, no paywalls—just pure, unfiltered JavaScript magic to supercharge your builds. If it’s saving you time, making your development easier, or just making you feel like a wizard in the Webflow Designer, consider slinging a virtual coffee my way.
Think of it like buying me a pint for keeping your Webflow spells flowing.
You can support it here.
Cheers, legend!
This is a method based on community and soundness. If you can't afford it, don't worry... One of your fellow Webflow nerds has already helped you out by donating.