Streaming live at 10am (PST)

Generator with the press of a button

Hi everyone,

I am building a project and would like to implement a section where with a press of a button it displays a different lists of things.
The attached website features exactly what I am referring to.

https://gradready.com.au/gamsat-quote-generator

How would I go about this?

Here is my public share link: LINK
(how to access public share link)

Hi zack99jr :slight_smile:

This feature would require a database and some custom coding. A possible solution could be to make a CMS collection with all your lists. Set them to display none. Then custom code a function that counts how many CMS items you have in that collection. When the button is clicked, generate a random number between 1 and the length of your CMS collection and use the nth-child, where n equals the random number, to display a random CMS item.

1 Like