Click to generate randomly from CMS

I’m looking to build a one-button site that will randomly show an entry from a CMS collection every time I click the button in the middle of the page.

Examples of sites that have similar functionality:

http://www.thisisreallyreal.com/

I won’t have any issue building the site, placing button, or using dynamic elements to reference my collection, however I do not know how to make the button cycle through the elements of my CMS Collection at random. I want to click a button and have the one piece of content change every time.

How do I do that? Any idea?

Best,
Christopher

“random” filters are cached by Webflow for 12 hours.

What you can do is display the entire collection (i.e: limit to 9999 entries), set all of them to display none initially, then write custom JavaScript code to display one at a time.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.