What I'm trying to accomplish is this: I'm using webform module to add some psychometric tests to a website. Personality tests, depression and anxiety questionnaires, you name it. It's intended to be used by students of Psychology, so they can see and test themselves on the most common psychometric questionnaires.
For example, the Eysenck Personality Questionnaire (http://en.wikipedia.org/wiki/Eysenck_Personality_Questionnaire) group all responses in two factors: Extraversion and Neuroticism. So you reply to the 30 questions it has, and at the end of the questionnaire, you get this:
You see? All questions are grouped in two factors, and you are given two numbers. So I need a way to tell Webform: "this item scores for Extraversion, this other item scores for neuroticism", and so on.
My initial approach was trying to create a vocabulary called "personality traits", put all possible terms there. Then, when the teacher creates a questionnaire, he assigns a taxonomy term to every webform component. When you create a new webform component Drupal shows you a form that looks pretty much like the field form. My idea is to insert a form field there, showing all the available taxonomy terms for vocabulary "personality traits".
I know how to modify a form, this is the easy part. My question is: I want to do things the Drupal way. How could I add the property "taxonomy: personality trait" to any webform component I create? How do I save and retrieve the data (I mean, the Drupal way)?
Thanks for reading.