Hi,
You can do this using Google sheets. Take a look at the video Assigning Coupon Codes: https://researchguides.library.syr.edu/dataservices/Qualtrics#s-lib-ctab-14642508-5
Paul
Thank you very much! I spent hours looking for this exact information.
@Antontrov I assume you have the QR codes as URLs in your file. How to you distribute the survey? Do you work with a mailing list?
If you work with a mailing list, you could just include one link per contact in the mailing list and define the embedded data from the mailing list within your survey flow. You can then use the embedded data to build some image with it at the end of the survey.
If you work with an anonymous link, you could add all the unique QR code URLs as choices to a multiple choice question.Then use advanced randomization to randomly choose 1 of all the URLs. Select "Evenly Present" so that each code is only used once. With JavaScript you can just hide the question as it is only some “dummy” to get one of the URLs. With the JavaScript you also select this option and click the next button so that the participant will not notice anything about this dummy question. You can then just use “Selected Choice” piped text to get the automatically selected URL from the first question to pipe it to your end of survey.
You may check my comment and JavaScript snippets here.
@chackbusch I have tried your way but for some reason no code appears. I understand that the selected choice will show the code that was selected, but how can it be selected if the participant does not see the code to select? That is the only issue that I have with your method.