Okay I’m trying to basically build a personality test
I think I’m complicating things - let me know if I did too much and could simplify
For data structures I have:
User
-lots of stuff not relevant
-Answer (List of Answers selected by user for each question****? < need help here) End goal is to be able to display the current users’ selected answers elsewhere in the app
Questions
-Name (text)
-Answers (list of Answers from below)
-Category (Category (text))
-Subcategory (Category (text))
Answers
-Answer Text (text)
-Number (number, 1-5 for listing in order)
-Which Question ( Question (text)
Categories
-Name (text)
-Subcategories (list of Subcategories below)
Subcategories
-Name (text)
-Category (Category (text))
Basically the personality test has Categories, each of which has subcategories, for every question.
Every question will have 5 answers but those answers will change based on the particular question
I’d like them to be able to select an option, store that option, and then display the selected answers on the User dashboard
I almost got there using a bunch of nested repeating groups (Category > Subcategory > Question > Answers as a radial button
But can’t figure out how to tie the selected answer to the user object so I can manipulate the displayed data based on the selection.
I would settle for using radio buttons for the actual answers mapped to the user as my desired end result
Thanks in advance