Render Random List in wized

I want to render random list, it will be take some random items from a supabase table.

Hello @mona.lgtpl

Welcome to the Wized forum!

Yes, it is possible so long as the list variable is an array and the list index variable is provided with a default value of 0 - Wized will recalculate the adjustment of the index variable to fit the number of items in the list.

We have documentation on how to render lists in Wized

Let me know if you bumpt into any issues

I think she’s trying to figure out if there’s any way to get random items as normally wized will give either as ascending or descending order, through sorting or filtering

By default wized fetches the data row by row - in the case of supabase. So if there’s a need to randomize there’ll need to be a javascript function which mixes up the array and assigns it to a variable from which the render list can utilize.