I can't access a repeating group's state

So i’m building an app that gives math and ela quizzes for a user. I’ve completed the Math part, and it works fine. Now’ I’m working on the ELA version, and I’ve came across a couple problems.

For my math quiz, I put questions in the quiz according to what “learning standard” the student has the lowest ability in. This “learning standard” has a list of questions and I pick a random one from there. And for ELA quizzes, its the same but I put al the questions related to a single readingprompt on the screen at once. Meaning that the user has to answer a list of 3 questions before going to the next set.

When the student is done answering a question, I try to record this by creating a new datatype called “questionresponse” which has the fields IsCorrect (yes/no), OG Quiz (Quiz), OG Question (question), SelectedAnswer (Answer).

Now on my math quiz, I create a workflow that makes a question response, and I set the Selected Answer field to the “selectedanswer” state of “repeating group of answers”. This works fine.
But when I try to recreate this on my ela quiz, I can’t find “repeating group of answers” when I’m editing a workflow. In fact, a lot of the other elements that I want to access are not on the menu. Now I notice that I did group “repeating group of answers” in another repeating group called “repeating group of questions” which contains all the questions I want to ask. Is this the cause of this problem? Can I not access a repeating group inside another repeating group because bubble doesn’t do that?

Another question I had was. Can I make this workflow more efficient by creating one “question response” for every question in the list of questions associated with the readingprompt that I am quizzing on. Since currently, I am planning on just copy/pasting the same workflow a couple times so that it creates one “questionresponse” per question in the list.



are the two repeating groups on the same page?

Hi,
My 2 cents about your post, to help us answering you you should write your post and question in the most straight-to-the-point possible way, and not bring in additional informations about your product as it will take more brain bandwidth to process your question. I felt I had too much info while reading your post :wink:

If you have 2 RG embedded one into another, yes you can not natively access the data from the ones inside. Just like you can not access the data of basically anything inside a RG.
You’ll have to use a plugin like “orchestra” (there might be others) to pass data between inside and outside a RG.

As per your WF optimisation, I don’t know in details what you need to achieve, but you certainly can create a Custom Workflow instead of copy/pasting the same WF several times.

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