Generating SchoolID, ClassID, and a uniqueID for each student | XM Community
Skip to main content

I am making a large scale survey that is to be distributed to different schools. Within each school there will be classes and its students. I have been looking everywhere for how to make a unique ID but can't seem to find a satisfactory answer. However, so far, I have used a piped text to generate a randomID (https://www.qualtrics.com/support/survey-platform/common-use-cases-rc/assigning-randomized-ids-to-respondents/). Is this ID unique to every survey participant?

Additionally, is it possible to create a link for each school? So that when I have my data I will know that all respondents from this particular link is from this school, which they can send to their students. I do not yet know which schools will be participating so I cannot make a drop down list. Within the school, I also want to have IDs for each class. I do not think using "Personal Links" is a good idea because I do not have a contact list beforehand.

No, random and unique are different things. You should use JavaScript or a webservice to create a unique id using a RFC 4122 compliant function.
To track school and class, you can add a url parameters/embedded data fields to your anonymous link. For example:
https://yourdomain.qualtrics.com/jfe/form/SV_yoursurveyid?schoolId=schoolId&classId=classId
Add 'schoolId' and 'classId' as an embedded data fields at the beginning of your survey flow.
You might be better off having class as a question within the survey instead of specifying it in the url.


Generating SchoolID, ClassID, and a uniqueID for each studentThank you for your response! Would you know how to use JavaScript to solve the problem of unique ID?


Thank you for your response! Would you know how to use JavaScript to solve the problem of unique ID?

Use uuidjs. You can load it from jsDelivr.


Leave a Reply