Need help for a "random" button(like a dice button)

Hi everyone,
I am building the app to get a random dish and display the menu info(from the menu list) with a single button(“Random Dish” button). Please see the pic below. However, I asked Chat GPT and it suggested setting the action of the button called “Show Random Item” which I could not find. Does Glide still have this option? If not, could you please suggest an alternative workaround on this? I am very on this platform.

Thank you in advance. :slight_smile:

Take ChatGPT with a grain of salt. AI can make things up sometimes. There was never such a thing as a “Show Random Item”.

I would look into creating a collection sorted in random order, and then add a button with a Shuffle Order action.

3 Likes

Thank you so much, Jeff. I agree with you now, as I see now that it doesn’t fully know the tool and can suggest something that doesn’t exist. I will look at it and follow its instructions :blush:

1 Like

You can do it like this, basically all you need is a button with the shuffle order action, and a collection of dishes (set sort to Randomly and limit to 1 item) :grinning_face_with_smiling_eyes: