From 49d17724121dc0622ed6db8faec44c3afc5a377c Mon Sep 17 00:00:00 2001 From: Bob Zhao Date: Thu, 21 Mar 2024 11:58:50 -0400 Subject: [PATCH] use name instead --- pages/forms/waitlist-form.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/forms/waitlist-form.html b/pages/forms/waitlist-form.html index 3de7af73..0af4795a 100644 --- a/pages/forms/waitlist-form.html +++ b/pages/forms/waitlist-form.html @@ -71,7 +71,7 @@

{{ page.title }}

Your facility or the Public Health Department you are representing Error fieldsToCheck.forEach( (element) => { if(element.type === "checkbox"){ - data[element.id] = element.checked; - } else { - data[element.id] = element.value; + data[element.name] = element.checked; + } + else { + data[element.name] = element.value; } } );