I'm trying to develop a question type that has multiple answers. The specific application is that I need learners to fill in a series of labels on a diagram (rather than choose them from an existing list) and the answers then need to be manually graded. I've created a question renderer that displays the image and text areas for the learner to put answers in. What I can't seem to work out is how to collect those answers and store them in the question database. I don't really mind whether each answer is stored as a separate question_attempt_step_data, or whether I combine them as a single record in a comma separated list or similar. But I need to work out what code I need to develop to collect the answer and create the database record.
Does anyone have any suggestions for example question types that would give me hints as to how to do this? Or can someone give me a quick pointer to which bits of code I need to implement in my question type?
Any help would be greatly appreciated