Viewing flashcards from a certain deck only

Hi, I’m new to bubble and am attempting to make a mobile flashcard app. My current issue which I can’t find any answers for is how do I allow my users to view all the flashcards in a certain deck?
As you can see in the first image users are able to click on their different decks (using labelled buttons in a repeating group)


this then takes them to a section of the app where they should be able to see all of the flashcards in that selected deck as a table of terms and definitions

however I can’t figure out how to make that second section work. I have tried creating a new field within the user data type as “currently viewing deck”, which should in theory change its name every time a folder is selected in the first screen, however this didn’t actually work, and no value was ever created for the name of that “currently viewing deck”
Any help would be much appreciated, and I’m keen to see if there’s an entirely different way that i should be going about this.

Instead of saving the currently viewed deck to the DB, you can use URL parameters. If the user clicks on a deck, you can redirect them to the deck page along with the slug in a parameter.

On this deck page, you can set the data source of the container group to the deck (coming from the URL parameter) and then show the corresponding table inside it.

Let me know if this makes sense.

Thanks so much for your speedy response! I really appreciate it.
Is there a way I can get that to work if my entire app is all within one page? I’m trying to make it a native mobile app with all of the different sections together so that there’s less loading time. Also does this mean that I would have to create a separate page for each deck? Part of the app is that users can create (and delete, once I’ve set that up) decks as they please, so I’m trying to have one group of elements which can display the flashcards in any deck that the user has created.

No problem :slight_smile:

Sure, if your app is a single page, you can get it to work by manipulating your URL parameters only. And no need to create separate pages. You just need to create a single page (on the same page of your Bubble editor) and set a dynamic data source for that, along with the correct visibility conditions; and you should be good to go

Thank you so much!


I’ve finally gotten it to work with your help!
It’s really encouraging to know that whenever I hit a hurdle in learning how to use bubble, help is out there, so Thank you!

Awesome! Glad I was able to help :slight_smile:

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