mpic
New Member
Posts: 5
|
Post by mpic on Jan 25, 2021 12:15:21 GMT
Hey! I was wondering if there is a way to add data to a query parameter at the end of the URL to which I redirect participants at the end of a survey, the same way it is possible to do the opposite (retrieve them). I would like to therefore add a query parameter like the participant's id (manually introduced in a question or retrieved from the URL they are comming from). E.g.: adding ?id=2313 to the url www.google.com --> www.google.com/?id=2313. Thank you Best, Marina
|
|
|
Post by PsyToolkit on Jan 27, 2021 13:47:38 GMT
See the documentation on the in / out variables:
|
|
mpic
New Member
Posts: 5
|
Post by mpic on Jan 28, 2021 9:30:51 GMT
Hey! I think I found the way to do it following the solution they provided here psytoolkit.boards.net/thread/376/pulling-data-query-parameters-end. So basically adding the field in and out in the survey. This seems to be 'almost' working. I say almost because what this did was to add one parameter to the URL with the '&' + 'myparameter', instead of starting with '?'. And as my URL did not have any other paramenter, this did not work because I got a link like 'https://myurl.com/test&ID=123'. But instead, what I would need is: 'https://myurl.com/test?ID=123'. Do you know how to fix this? Attachments:
|
|
gg
New Member
Posts: 4
|
Post by gg on Jun 22, 2021 10:19:36 GMT
Did you find the solution to your problem? I'm currently struggling with this too..
|
|
|
Post by PsyToolkit on Jun 23, 2021 10:43:55 GMT
There is a new lesson about this:
|
|
gg
New Member
Posts: 4
|
Post by gg on Jun 23, 2021 14:03:37 GMT
Thank you so much for the lesson! I was able to solve the problem.
|
|