Randomised Selection Button Help

Hi all,
so i’ve been building an app and on the whole, AI has been a big help. Now i’ve had to rebuild it about 12 times because AI changes its mind about the best way to do things but hey, i’m here and it’s almost done to the point I want it!
BUT
I’m stuck on the final job and every method Fin and ChatGPT have suggested so far have yielded nothing successful.

Essentially, I have a button within a pack that I want to open a random card within that pack.

  • I’m building a language app, So a pack will have a selection of questions within it, so for “Greetings” for example one question might be “Hi how are you?” etc.
    So sticking with “Greeting” as a pack, when you select that pack within the app, it opens all cards within that pack - and each card is individually selectable, this allows you to revise the information without it being in anyway feeling like testing.
    Now, back within the Pack screen - sticking with “Greetings” I have a button, which states “Start Practice” as above, I want this button, to select a card from the deck. It does this but it’s not random, it’s always the same card (it changes from deck to deck but it’s always the same card within each deck)
    I want it to select a random card - i.e. if I went into the app today and hit practice, it would (other than by chance) bring up a different first card each time.

So that’s issue 1.

Now on that card that it does bring up, I also have “next question” as a button. This should largely be the same function, in that it selects the next random card within that pack, and so on and so on.

I just can’t get it to work. I’ve been stuck on this specific problem for hours and just want a human to run me through it now.

1 Like
  1. What you can do is: add a workflow action to the button to shuffle the order, then show the collection of cards within the pack “Greetings”.
  2. For the type of collection, you could go either with cards or for instance a custom collection to style as needed.
  3. Next, limit your collection to 1 item, set the sort order to random (I think that’s what it’s called)

PS. not behind a computer now, but thinking out loud: this should normally do what you need it to do.

PS2. AI hallucinates a lot when it comes to giving advice on Glide development. You would be better off going through Glide University;)

2 Likes

workflow worked. which is awesome!
the AI systems had me going round in circles for 2 days, pulling my hair out! seems a really simple thing to have so I’m not sure why it kept getting confused. Anyway. All working now happily.

2 Likes

Please feel free to post questions in the forum when you face a blocker.