From 43d3420f748d01ef323d7d441a695d6815fc1745 Mon Sep 17 00:00:00 2001 From: Keith Date: Sat, 21 Nov 2026 10:02:36 +0100 Subject: [PATCH] consent posts as a JSON boolean (the checkbox's literal 'on' never reaches the webhook) --- src/components/LeadForm.astro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/LeadForm.astro b/src/components/LeadForm.astro index 7288e07..28c64f5 100644 --- a/src/components/LeadForm.astro +++ b/src/components/LeadForm.astro @@ -123,6 +123,9 @@ const note = type === "founders" ? strings.form_founders_note : strings.form_hub const data = new FormData(form); const payload = {}; data.forEach((v, k) => { payload[k] = v; }); + // consent as a JSON boolean (the Flow/CRM mapping expects true/false, + // not the checkbox's literal "on"; an unchecked box never arrives) + payload.consent = data.get("consent") === "on"; if (payload.website) return; // honeypot: pretend success, send nothing if (capField && !payload.capabilities) payload.capabilities = capField.value; button.disabled = true;