Learn how to use query strings to set embedded data values, pass information from one survey to another, and apply your skills to more advanced use cases.
FAQ for Embedded Data with Query Strings
Can I add more than one query string to a URL?
Yes, but there are additional formatting requirements. The very first query string on a URL will begin with “?”, and all subsequent query strings will begin with “&”. For example:
- [survey URL]?EmployeeID=123&Cohort=B
Can I use query strings to pass multiple values for the same field?
Yes. For example, you could write:
- [survey link]?Client=Qualtrics&Client=SAP and the result would be that the field “Client” has a value of “Qualtrics, SAP.”
How do I troubleshoot a query string that isn’t working?
Make sure the field name in your query string is identical to the field name in the survey flow. This is case-sensitive. If your field name has spaces or special characters, you will need to make sure they are properly URL-encoded. Use a free URL encoder online to do this. Ensure your query string is formatted correctly. The first query string should begin with “?” and all subsequent ones with “&”. Make sure that the field name exists as an embedded data field in the survey flow and that the most recent version of the survey has been published.
How do I dynamically pipe a value into a query string using piped text?
Follow the steps on this page to use piped text in a query string.
Learn more about query string syntax, use cases, and formatting on this support page.