How do I display a database list separately in a RG

Hi so I am pretty new to Bubble and I have been having this issue from the very start. I think it’s about time I learnt how to do this.

I have a database list with 4 things in it.

I have a RG which I have a build a card in. I want to be able to have a different thing from the DB list to appear in different cards.

This is what I am trying to achieve

This is what I have

DB

Screenshot 2025-04-07 at 23.47.49

RG setup

Query

My assumption is that I would have select display each item by this is not a option

The RG type of content should be text and you should feed Pathway-contents’ Answers as the RG data source.

Thanks for your response, but I dont understand if I change the content to text how I can use the RG to get information from the database. As I literally just said what you said above and RG is now blank, even after using the do a search for feature in the nested group thats within the RG

I misunderstood your question.

However, I think there’s something wrong with your architecture. You are feeding Pathway-contents records in the RG, but you are trying to show Answers from just one of them.

To give context, I have a quiz.. in the backend admin can add a quiz question and the 4 answers. I add them as a list as I want to answers to be randomised. So what I really want to do is list out all the answers from the list.

Then you shouldn’t feed the RG with different Pathway-contents records, but with the Answers field of a certain Pathway-contents record!

RGs feed each of their cells with a record of their data source! If you feed the RGs with several Pathway-contents records, that’s what you’ll get. You can’t expect to show a different answer in each of the cells because each cell is referring to a whole Pathway-contents record.

You have two options

  1. You can limit the UI to a specific Pathway-contents and show its answers, one per cell
  2. If you need to show several Pathway-contents, each of them with their answers, you’ll need to nest another RG inside each of the first RG cells. The outer RG 's data source are Pathway-contents records, and inner RG’s data source is that cell’s Pathway-contents record Answer field.

I am a little confused by what you are saying. Or maybe it’s just my understanding.

I have entered all the records into the answers list, as I want to easily be able to randomise the answers order. So each pathway content has an id and each answer is just in a list.

OK let’s try with some step-by-step guidance.

The below RG should have Type of content text, and as Data source, one specific Pathway-contents' Answers. Just for now, just do Search for Pathway-contents:first item's Anwers

Then, change the Type of content of Group Pathway-content to text and set its Data source to Parent group's text.

That should make each answer to appear in a diferent chip.

Disclaimer

Now you won’t be able to show Answers of any other Pathway-contents but the first one. However, with the below solution I gave you, you’ll be able to show more if needed.

Reread my posts above once you’ve completed

Sorry for the delay, I have been a little ill.

I have done that and nothing displays

hello! just like @ademiguel said, you need to nest another RG inside the questions RG, but it would be much better if the “answers” property were a list of texts in your database instead of a single string.
in your case, just put a RG of type text inside the question’s cell, the data-type would be this cell’s answers split by (,). like this.

1 Like

@jerneva.cowell you do not need to nest any RG

  1. Create an option set you call ‘answers’ (I say this assuming all questions will have the same set of 4 choices (ie: Yes, NO, Maybe, Sometimes)…and these four choices are your option set values.
  2. Create the card with a single RG that is your list of options.

NOW, if you want different answer choices for each question, again, absolutely no need to nest any RG. You can instead ensure your data type of ‘question’ has a field called ‘answer’ and that field is of type text or could be related to another data type (other data type only if your creation of answer choices is needing to be updated often or user created).

So let’s say you have a data type simply named ‘question’ and a field called ‘answer_choices’ you will have a group that is the container and that group will have a data source of ‘question’ and then your single RG inside of the group container will be of type ‘text’ and your source will be ‘parent groups questions’ answer_choices’…this allows you to have a group container with text for the question and rg for the answer choices and simple reference for saving the selected answers knowing which question it is for.

1 Like

You’ll need to set Text Parent group's Pathw content to Parent group's text too.

If you keep not getting Answers being shown, come back with the following:

  1. Check that all Pathway-contents records have their Answers field with actual answers in it
  2. Send screenshots of the following elements in the editor
    2a. RepeatingGroup Pathway-content
    2b. Group Pathway-content
    2c. Text Parent group's Pathw
1 Like

Hi all!

I had to mix all your approaches and I have successful done this now. Thanks for your patience with me