-
Notifications
You must be signed in to change notification settings - Fork 0
/
referral.html
28 lines (28 loc) · 921 Bytes
/
referral.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MFB Typeform Referral Link Example (Popup)</title>
</head>
<body>
<button
data-tf-popup="Oj4AEsQl"
data-tf-source="localhost"
data-tf-on-ready="onTypeformReady"
data-tf-on-submit="onTypeformSubmit"
data-tf-on-question-changed="onTypeformQuestionChanged"
data-tf-on-close="onTypeformClose"
data-tf-on-ending-button-click="onTypeformEndingButtonClick"
>
Request an Appointment
</button>
<script src="https://embed.typeform.com/next/embed.js"></script>
<script>
function onTypeformSubmit(data) {
let redirectTarget = "https://screener.myfriendben.org/?referrer=bia&externalid="+data.responseId
window.location.href = redirectTarget;
}
</script>
</body>
</html>