Loading...
  • Customer Experience
    Customer Experience
  • Employee Experience
    Employee Experience
  • Brand Experience
    Brand Experience
  • Product Experience
    Product Experience
  • Core XM
    Core XM
  • Design XM
    Design XM

Assigning Randomized IDs to Respondents

What's on This Page:


Was this helpful?


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The feedback you submit here is used only to help improve this page.

That’s great! Thank you for your feedback!

Thank you for your feedback!


About Assigning Randomized IDs to Respondents

Sometimes you will want to create a randomized ID for each of your respondents. This is useful if you are running a study with Amazon’s MTurk, or any other external service where you ask respondents to prove their completion with an ID.

This page will go how you can created a randomized ID, and then explain how you show this ID to a respondent.

Attention: Neither method described here checks against existing IDs. That means that there is a chance that more than one respondent can have the same ID. This is extremely rare, and the chances are decreased by making your IDs longer. For example, try to make IDs 10 to 12 digits long to ensure the chance of a repeat ID is negligible.

Using Embedded Data and Piped Text to Create an ID

  1. Go to the Survey flow.
    navigating to survey flow and clicking add a new element here
  2. Click Add a New Element Here and or Add Below.
  3. Select Embedded Data.
    selecting the embedded data element
  4. Name the embedded data Random ID.
    adding an embedded data element for random ID and clicking set a value now
  5. Click Set a Value Now.
  6. Click the dropdown arrow, hover over Insert Piped Text, hover over Random Number, enter your minimum and maximum, and then click Insert. Your minimum and maximum should have the same number of digits.
    using the piped text menu to select random number, enter a range, and then click insert

    Example: For a 5-digit ID, your minimum is 10000 and your maximum is 99999.
  7. Click Insert.
  8. Click and hold down Move to drag the embedded data to the top of the survey flow.
    moving the element to the top of the survey flow and clicking apply
  9. Click Apply.

Displaying the ID to Respondents

Qtip: Here we are using piped text to display the random ID to the respondent. Piped text can be used in many parts of the platform, but these are just a few of the most common.

Displaying in a Question

  1. Click the question text to edit it.
    selecting the question in the survey builder and clicking piped text
  2. Click Piped Text.
  3. Highlight Embedded Data Field.
    selecting embedded data field, entering random ID, and then clicking insert

    Attention: It is extremely important you select Embedded Data! If you select Random Number instead, you will create a NEW random number that will not be saved with the response data!
  4. Type in the name of the embedded data that holds your IDs. You can also use the dropdown menu to select the field from a list.
    Qtip: This is the name saved in the survey flow. If you used the exact same wording as the above example, this is Random ID.
  5. Click Insert.
  6. When respondents complete the survey, they will see their Random ID.
    a question with the piped text displaying the randomized ID

    Qtip: In this example, we added additional instructions on what the respondent has to do with the ID. Because the survey is ending on a descriptive text question, we also want to instruct them to click the Submit button, or else their response might not be properly submitted.

Displaying in a Follow-Up Email

Attention: You must have emailed the survey to your respondents or asked them to provide an email address to use this option.
  1. Go to Actions.
    navigating to actions, clicking create an action, and then event-based
  2. Click Create an action.
  3. Select Event-based from the dropdown menu.
  4. Select Survey response as the action event.
    choosing the survey response event
  5. Check Response created in the window that appears.
    choosing response created and then finish
  6. Click Finish.
  7. Click the plus sign (+) and select Task.
    clicking the plus sign and then task
  8. Choose Email.
    choosing the email task
  9. In the Message field, click the piped text button, {a}.
    clicking the piped text icon on the message editor and selecting embedded data field
  10. Select Embedded Data.
    Attention: It is extremely important you select Embedded Data! If you select Random Number instead, you will create a NEW random number that will not be saved with the response data!
  11. In the window that appears, type in the name of the embedded data that holds your IDs.
    entering the embedded data field name and clicking save

    Qtip: This is the name saved in the survey flow. If you used the exact same wording as the above example, this is Random ID.
  12. Click Save.
  13. Next to the “To:” field at the top of your email, click the piped text button, {a}.
    clicking the piped text menu for the to: field, and then choosing where the respondent's email was entered
  14. If you emailed the survey out initially, highlight Panel Field and select Recipient Email. If you asked the respondent to type their email, highlight Survey Question and select the text entry answer where you ask for an email address.
  15. Click Save.
    Qtip: Feel free to add whatever details you want to this email, such as a special Reply-To or From Name. Learn more on the email tasks page.
  16. When respondents complete the survey, they will receive an email with their Random ID inside.