I need to build an app for questionaries. The catch is that the questionaries should be able to be modified by an admin user. Each questionary should have categories, each category would have questions and each question would have options each option with a weight (ex good-3, fair-2, bad-1).
I already have built a structure in which I have a questionary data type with a field made of a list of categories. Each category data type have the name of the category and a list of questions. Each question have the question and a list of options. The options data type has the option name and the weight value (1,2,3).
I build the admin interface to add, delete and edit the categories, questions and options but the problem comes when trying to fill out a questionary. I tried creating a copy of the Categories but the questions inside the categories were the same as in the original categories, so any changes there would affect the original template.
Any suggestion on the estructure I should use or the way to copy a list with copies of its sublists?
Thx