Hi,
After a user completes a survey, on the last page, I want to display a link with caseNumber() as a parameter. Imagine something like this:
<a href="www.example.com?id=caseNumber()">Go to example.com</a>
However, it seems that PHP variables and placeholders cannot be used on the last page. As a workaround, I have created two other pages before the last page:
This seems to be working OK since the survey is finalised and the user gets redirected to example.com with his/her caseNumber passed as a parameter. However, it seems a bit hacky to me, so I was wondering if there's a better way to achieve the same functionality.
In case it helps, caseNumber is needed on example.com so that users can compare their answers with survey averages (via data visualisations). The survey data are retrieved in real time using SoSci's API.
Many thanks