Closed mcfrank closed 1 year ago
One minor note is that, unlike for prolific and other sources, participants may not know their source_id
in this case, so we might not want participants to be able to change it in the demographics part of the form...
@mcfrank
Can I just check, are you asking the we accept the URL http://webcdi.stanford.edu/interface/langcoglab/RedCap%20Sample/new_parent/?child={{%child%}}&response={{%response%}}
and in the code I combine child
and response
into source_id
so `sourceid = child + '' + response?
And then if Lookit is the selected Participant Source then we do not show the source_id to the user?
Also, on completion of the survey, should the user be redirected somewhere and if so, how is this link made?
Yes that's exactly right.
with respect to redirect, I am not sure. let's tag @mekline and see what she thinks.
@mcfrank
I amended code so that if child
and response
are in the url GET data then they are combined and stored in source_id
.
I have added a boolean question to the study 'Hide source id from parent/participant'. When selected the source_id
is not shown to parents. This way you can use it with different companies.
I am deploying to development now so you can test and confirm working as you would expect before I deploy to production
thanks Henry! @JMankewitz can you test in concert with @mekline? thanks!
@JMankewitz The best way to do this would be to make a new study in the Sandbox lab (which all researchers have access to), with a setup as close as possible to your actual scenario (so e.g. making a short internal experiment with link at the end, OR an external study going straight to the webCDI, whichever matches your plans). Let me know if you need more orientation either by email or want to set up a quick call!
Hi @mekline! I'm having trouble adding an exit URL with parameters. Is this something I'd add during the study setup/editing page (e.g., in the Exit URL), or something I add to the protocol configuration? Are the child IDs and response IDs exposed at some point (I'm not seeing them as variables) so they can be piped into the experiment itself?
It might be worth touching base with a short call! I can followup over email with my availability if needed. Thanks!
Hi @HenryMehta, we are looking to build a new feature for a collaborator study (the study is called RISE).
The goal is to accept URLs from a new external site called LookIt. We would like to create a url for lookit, like our previous RedCap link. This URL will accept two fields, called
child
andresponse
, but we will squash these together to make oursource_id
under the hood. So instead ofhttp://webcdi.stanford.edu/interface/langcoglab/RedCap%20Sample/new_parent/?source_id={{%source_id%}}
we would likehttp://webcdi.stanford.edu/interface/langcoglab/RedCap%20Sample/new_parent/?child={{%child%}}&response={{%response%}}
but thensource_id
is justchild
andresponse
, joined with a_
or something. (An email from @mekline with further details on the URL format is below).The timeline for this is probably the next two weeks, does that seem OK to you?
thanks in advance!