Need a Randomize and pick

Hey thanks for reading,

I have a list of restaurants that I want to assign a cuisine too i.e Japanese, Italian, Australia and I want a button in my app that I can first filter with multiple cuisines like just Japanese and Australian and then it will randomly pick one of the restaurants in the data. I’m not sure the best way to do it and was wondering if anyone can give me a bit of help.

Thanks,

Zane

@zaneriis1 you should have a field Cuisine (either a text or of type Cuisine depending on your data configuration) in your data type Restaurant

Put a 1x1 RG on your page, set it to data type Restaurants. Assuming your filter is a dropdown which lets the user pick a type of Cuisine, when button is clicked, run a workflow with the ‘Display list in RG’ action, and set the data source to Search for Restaurants:random item (constrained with Cuisine = Dropdown’s value)

That should only return 1 random restaurant for the user’s cuisine choice

Hope that helps

This topic was automatically closed after 70 days. New replies are no longer allowed.