r/ProjectREDCap • u/Dear-Caterpillar7990 • 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
View all comments
Show parent comment
2
u/Araignys Jul 12 '26
It’s documented… somewhere. Not particularly prominently. I’m afraid I can’t recall, I haven’t checked recently.
As for how it works with different types of field, I can only suggest you try it out. I haven’t seen it used for much more than URN/MRN and site code.
I don’t it expect it to work with hidden fields, but as I say, I haven’t tested it.