Unsubscribe from TheraHive Emails

Newsletter
NO
Practitioners
NO
Student Notification
NO
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Website image on TheraHive, an online DBT skills platform
const params = new URLSearchParams(window.location.search); const email = params.get("email"); const confirmBtn = document.getElementById("confirmBtn"); const statusMessage = document.getElementById("statusMessage"); if (!email) { document.getElementById("emailDisplay").textContent = "No email found."; confirmBtn.disabled = true; } else { document.getElementById("emailDisplay").textContent = `Email: ${email}`; } confirmBtn.addEventListener("click", async () => { confirmBtn.disabled = true; confirmBtn.textContent = "Submitting..."; statusMessage.classList.remove("hidden"); statusMessage.textContent = "Submitting..."; // Get checkbox values const newsletterOptIn = document.getElementById("newsletterOptIn").checked ? "yes" : ""; const promotionalOptIn = document.getElementById("promotionalOptIn").checked ? "yes" : ""; const studentOptIn = document.getElementById("studentOptIn").checked ? "yes" : ""; try { const res = await fetch("https://hook.eu2.make.com/wvd5kcddaj5ai5f3htw8jqtlm8c64r4r", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email, newsletter_opt_in: newsletterOptIn, promotional_opt_in: promotionalOptIn, student_opt_in: studentOptIn }) }); if (res.ok) { statusMessage.textContent = "Preferences updated successfully."; confirmBtn.textContent = "Done"; } else { statusMessage.textContent = "There was an error. Please try again."; confirmBtn.textContent = "Try Again"; } } catch (err) { statusMessage.textContent = "Network error. Please try again."; confirmBtn.textContent = "Try Again"; } });