I have an LMS app with surveys. Surveys are 3-6 questions using a Likert scale, like this:
These questions are set up in a repeating group, that loads the questions for the Lesson. And in that repeating group is the radio button element.
I want to record these answers to a table called “Survey Responses.” Fields are:
- Lesson (from page)
- User (current user)
- Question number (the index from the repeating group - i DON’T need the actual question)
- Response (from the radio button)
I understand this a recursive workflow, and I’ve set up the basics to schedule through the count of the repeating group.
But I’m stuck on how to enter the Question number (index) + Response (radio button) from the repeating group.
All the examples are talking about adding inputs to a state, but what if they don’t answer in order? I need to know which response for which question index they chose. (Also, I want to make all questions required.)
This is where I’m at so far. Can someone provide some guidance?