For my application, I need users to answer 50 questions. These questions are retrieved through a web service along with their corresponding answers, all assigned to a unique ticket number.
The challenge is in displaying and saving the user's choices. What would be the best practice in this scenario?
I am using TypeScript and Angular for development.
Currently, I have set up a table with 50 rows, each containing a dropdown list for answering a question. The questions are pre-fetched and displayed in the dropdowns.
However, I am struggling with accessing and identifying which questions the users have answered and saved within these 50 records.
My goal is to save all responses at once if all are answered, or individually if needed (although it might not be an ideal solution due to transaction autonomy concerns).
I attempted to use formGroup for the table but encountered issues.
Perhaps my approach with the table structure is incorrect?
Any assistance on this matter would be greatly appreciated!