0 votes
in SoSci Survey (English) by s103538 (135 points)
edited by SoSci Survey

Hi all,

I received this exit link from the panel provider:

https://api.dynata.com/respondent/exit?rst=1&psid=#psid#&basic=47

I created the final page with the following PHP code:

redirect('https://api.dynata.com/respondent/exit?rst=1&psid=%reference%&basic=47');

The redirect works, but the PHP code fails to grab the "psid" value provided by the panel URL.

I also tried #%reference%# and #psid#, without success.

Thanks a lot in advance for any help!

Regards

1 Answer

0 votes
by SoSci Survey (327k points)

I created the final page with the following PHP code

That look good, and I assume you placed the PHP code on a page before the last page in a "PHP code" element.

fails to grab the "psid" value provided by the panel URL.

What link did you give the panel provider? Make sure the link that you give them is

https://www.soscisurvey.de/YOU_PROJECT/?r=[psid]

If they should insist to send the code in a different variable, you can use a question of the type "device and transmitted variables" to read the code (see The provider uses a different variable than "r")

by s103538 (135 points)
Thank you! Yes, I created an empty page with only the PHP redirect code.

When I submit the survey URL to the system, the panel automatically adds

&pid={{PID}}&psid={{PSID}}

right after /?r=[psid]

so it becomes:

https://www.soscisurvey.de/YOU_PROJECT/?r=[psid]&pid={{PID}}&psid={{PSID}}

Is that the source of the problem?

Thanks again!
by SoSci Survey (327k points)
Yes :) But not really a problem, just annoying.

In that case omit the ?r= and use the question to read both variables. Follow the manual to use the PID instead of %reference% in the return URL.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...