This functionality is used in an anonymous survey to generate a personal link for a survey which is specified by means of an ID. You will use the appropriate formula, among other things, when you want to invite participants for a survey study, none of whom are members of a sample and/or panel.
In the anonymous survey, for example, you will include a question asking participants whether they want to participate in a study. This survey can be launched using the anonymous survey link on the Distribute page.
If the answer to this question is No, these participants will receive a screenout and will not be able to participate further in the study. They will then be redirected to a URL which has to be specified, e.g. https://www.survalyzer.com, or to the thank you page.
For this, a forwarding element should be set up immediately after the Yes/No question, requiring the following data to be recorded:
- Interview state: Screenout
- Option: Forward to end page
- Goodbye text: Enter text
- Filter: Show this element IF in the Yes/No question (in this example: q1) the answer No has been selected.
If participants answer the question with Yes, they will be redirected to another survey using a personally created link from which they can answer the questions. This second survey is then no longer anonymous.
In order to achieve this, you add a value assignment to the survey after the forwarding element that automatically creates a unique interview ID of the survey with the corresponding ID for a participant.
Variable | Data type | Is equal to the following term: |
link | String | getSurveyLink(2094) |
Using the formula getSurveyLink(2094), a personalised link for survey 2094 is created for all participants who answered the q1 question with Yes. It comes down to supplementing the anonymous survey link with a unique interview ID.
In the Execute setting, ensure you select the option Every time the participant passes this point.
If you want to show a participant the personal link, you can include a text block in the survey after the value assignment. In this text block, you can include text like The link below is generated with a unique interview ID:. The placeholder used (underneath) for this link is always provided with the prefix custom. To include a custom placeholder, you can click on the link labelled Rich text editor at the top right of the text block. You will then access the RTE window. For more information, please refer to the Rich Text Editor (RTE) article.
Finally, a forwarding element can be included after the text block to forward participants who answered the question q1 with Yes to the survey containing a unique interview ID for each participant. Here, the following data can be recorded:
- Interview state: In progress
- Option: Forward to URL
- URL: {{custom.link}}
Raw data from the first survey: For those participants who answered the question q1 with Yes and are redirected to the second survey, the anonymous survey link (Interview Link) completed with a unique interview ID is displayed in the link column (custom variable). These participants’ surveys are assigned the InProgress status in the Interview State column.
Raw data from the second survey: This file contains the survey results of the participants forwarded to this survey. Here, the link displayed in the link column (see the first survey) is split among two columns, i.e. Interview Link (anonymous survey link) and Interview ID (unique interview ID per participant which personalises the entire survey link).
Based on these data, it may be easy to determine which answers from the first one match those from the second survey.