From e241603c68b17aaf1e71a32e536688f657224c99 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 18 Jun 2026 12:19:19 -0700 Subject: [PATCH] Update form-handlers.js Add a marketoSendToDemoPage callback --- src/utils/form-handlers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/form-handlers.js b/src/utils/form-handlers.js index cdf2c21..f205c53 100644 --- a/src/utils/form-handlers.js +++ b/src/utils/form-handlers.js @@ -185,6 +185,11 @@ function marketoSendToTrialPage(values, followUpUrl, $form) { // Return false to prevent the submission handler continuing with its own processing return false; } +function marketoSendToDemoPage(values, followUpUrl, $form) { + const email = values.Email; + location.href = "/demo?email=" + encodeURIComponent(email); + return false; +} function marketoDisplayThankYou(values, followUpUrl, $form) { let thankYouMessage = $form.data("thank-you-message"); if (typeof thankYouMessage === "undefined") {