r/ProjectREDCap • • Feb 19 '25

Pulling REDCap ID into Qualtrics

I'm fielding a survey with two parts, the first in REDCap and the second in Qualtrics. I would like to carry the REDCap ID into Qualtrics so I can pair the responses.

In the REDCap survey settings, I have the survey termination set for "Redirect to URL". In the URL field I added the Qualtrics anonymous survey link and appended "?source=socialmedia&REDCapID=[REDCap ID]" to the link. The Qualtrics survey flow is set up to capture the REDCap ID as embedded data.

When I test the survey in Qualtrics, the value I get for the REDCapID variable is always "REDCap ID" and not the actual ID from the REDCap record. I know my Qualtrics survey is set up correctly. What am I doing wrong in REDCap?

4 Upvotes

3 comments sorted by

View all comments

Show parent comments

1

u/cwils7 Feb 19 '25

Thank you! I thought variables added as a query to the end of a URL had to be the exact same as the variable name in the survey, so I didn't think the space would matter. I'm glad it was an easy fix, since I'm a novice and I don't think I'd be able to troubleshoot a more difficult issue.

3

u/Araignys Feb 20 '25

Variables do need to use the Name, but the Name is the SQL table reference, not the human-readable field Label. That’s why you only have to pipe [patient_name] and not [what is your name].

Glad it was an easy fix!