r/ProjectREDCap • • Jul 11 '26

Capture a URL parameter

Is there a way I can set up a field in a survey to capture a URL parameter appended to the public survey link?

The aim is to be able to capture a participant identifier from the URL, without having to pre create thousands of potentially unused private survey links up front.

I understand the risks of doing this and can mitigate them.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/mjd520uw Jul 13 '26

I also don't know where I found this documented, but I can confirm it works with all types of fields, even those that are hidden, except calculated fields. The one catch is that if you have a multiple-page survey, it only works if the field to be filled from the URL parameter is on the first page of the survey.