Overview
If you need respondents to be redirected to an external Merit page after completing a Tivian-scripted (Discover XI) survey, you can implement the redirect on the relevant final page(s) using page-specific JavaScript actions.
If the questionnaire itself is hosted in an external platform and Tivian is only used to launch the external survey and handle the return, use an External Survey Start page instead.
Solution
A) Tivian-scripted survey: redirect from final page(s)
-
Create (or identify) distinct final pages for each end state you need to report back to Merit (for example: Complete / Screened out / Quota full).
-
Route respondents to the correct final page using questionnaire logic (for example: filters and quota routing).
-
Optional: If you use intermediate final pages (for example, for quota-based screenouts), you can assign a Disposition code in the page Properties. The Quotas documentation describes creating a filter, creating a final page under the filter, and selecting a disposition code in the Disposition code field.
If you need help selecting which disposition code to use, refer to the Disposition Codes documentation.
-
On each final page, define a page-specific JavaScript action that performs the redirect. Tivian supports inserting JavaScript that is executed once the page is sent.
Navigate to the final page in the questionnaire editor and open the Page Properties for that page. In the section titled Defining Page-Specific JavaScript Actions, insert your redirect JavaScript.
Example redirect:
window.location.href='https://your-merit-redirect-destination-here';Notes:
- This feature requires JavaScript enabled in the respondent’s browser.
- Only single quotation marks (
') are permitted in the page-specific JavaScript action; if double quotes are used, the feature will not work. - If Merit requires additional data (for example, a respondent token and/or a status code), add them as URL GET parameters (standard
?/&syntax).
B) External questionnaire: use External Survey Start
-
In the primary questionnaire, click + Dynamics and select External Survey Start to create an External Survey Start page.
-
Click the new page’s link to open the Page properties tab, then set Destination URL of external survey to the external questionnaire URL.
-
Configure the return jump on the external questionnaire’s final page by opening that final page’s Properties and setting the destination URL back to the primary project.
-
Testing note: External Survey Start cannot be tested in preview; it must be tested in productive mode.
Validation checklist
- Run an end-to-end test and confirm each end state reaches the expected final page.
- Confirm each final page redirects to the correct Merit destination.
<supportagent>
If a customer reports an unexpected landing page after completion (for example, a maintenance page), ask for:
- Exact destination URL(s) configured for each end state (with sensitive tokens redacted).
- The final page name(s) and screenshots of the final page Properties showing the page-specific JavaScript action(s).
- The exact JavaScript snippet used (confirm it uses single quotes).
- The approximate completion timestamp and the respondent test path (Complete / Screened out / Quota full).
</supportagent>
Priyanka Bhotika
Comments