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
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
You can limit the UI to a specific Pathway-contents and show its answers, one per cell
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.
The below RG should have Type of contenttext, 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.
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.
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.
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.