# How to create a survey that has a unique token and populates certain teachers?

2 years 3 months ago #139095 by uganrc
uganrc created the topic: How to create a survey that has a unique token and populates certain teachers?
How to create a survey where every student has a unique token and when that token is entered that it pulls/populates the survey for each teacher the child has and records the information.

Example: 30 Kids = Each with unique token = 27,000 unique tokens

Each token pulls up one child's teachers (1 teacher or 7 teachers)

The student would take the survey per teacher

Admin and each individual teacher would be able to see survey per teacher.

2 years 3 months ago #139148 by Joffm
Joffm replied the topic: How to create a survey that has a unique token and populates certain teachers?
Hi, uganrc,
my first idea is:
without knowing the total amount of teachers, let's say nT (number of teachers).
1. copy the questions regarding the teachers nT times.
2. create sample attributes for each child with names or code of its teachers.
3. with relevance decide which part of questionnaire (which teacher) is answered by each child.
Of course: if there are 200 teachers this is not usable.

Therefore second idea, shorter:
the maximum of teachers is 7 (as I understood).
1. copy the questions regarding the teachers 7 times.
2. create sample attributes for each child with names of its teacher.
3. pipe this name into the respective part of the questionnaire; so the respondent knows which teacher to rate.
4. with relevance decide how many parts of questionnaire (which teacher) are answered by each child.(if sample attribut not empty -> answer; if sample attribut empty -> don't answer)

The second solution may be shorter (only seven parts), but has some disadvantages:
While in the first solution the answers of each teacher are in the same fixed variables, they are not in the second solution.
So in this case you have to rearrange the anwers after exporting them by EXCEL or whatever.

And of course all my ideas ignore your last phrase ("Admin and each individual teacher would be able to see survey per teacher. ")

BTW: What is this factor of 900?
30 Kids -> 27000 tokens.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless