Generally, you set up this type of table structure:
Respondants------<Responses>-------Questions>-------Surveys (----< means "one to many")
A single record in respondants represents one person responding to your survey. You put your name, date, course for review, etc. fields there. Then link it to responses by a unique serial number field defined in respondants:
Respondants::__pk_RespID = Responses::_fk_RespID (pk means "primary key" and fk means "foreign key".)
Each response to a question is a separate record in that table. The radio button field with your Likert scale and your comment field for comments is defined in this table. (Assuming you have one comment field for every question, not a single comment field for the entire survey...)
Each question to ask in your survey is a separate record with it's own serial ID in the Questions table to produce this relationship:
Questions::__pk_QuestID = Responses::_fk_QuestID
A Text field in the Questions table is used to store the survey question being asked. If your survey asks each respondant 5 questions, this table will have 5 records for that survey. (It's not needed for this project, but it's possible to add a field in Questions that lists the possible answers for that specific questions so a conditional value list can use this field and present the user with different values on every question.)
You may or may not need a Surveys table. Adding one allows you to process more than one survey--each with it's own group of related records in the Questions table.
With the above structure, you can set up a portal to responses on the respondants layout. The Question field from the related Questions table can be added to this portal so that the respondant can read the question and select a response in the portal for each question.
Alternatively, a list layout based on the Responses layout with related fields from both Respondants, and Questions added to the layout can be used to administer the survey questions.
Either way, a script would be used to create one matching record in responses for each question, linked by RespID to the Respondants record each time a person starts to take the survey.
To see how such a table of responses can be used to produce your report, see this tutorial on summary reports (The lineItems table in the tutorial is similar to the responses table described here.):http://forums.filemaker.com/posts/be76a023b9
Your new post is loading...