From 91c2b0b4b9fe7b19fc0aec7c071c04bb39fc096e Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 24 May 2022 20:19:27 -0700 Subject: [PATCH] Add phone number field --- src/routes/contact/index.svelte | 5 +++++ src/routes/contact/submit.js | 1 + 2 files changed, 6 insertions(+) diff --git a/src/routes/contact/index.svelte b/src/routes/contact/index.svelte index 3f551ec..e097894 100644 --- a/src/routes/contact/index.svelte +++ b/src/routes/contact/index.svelte @@ -7,6 +7,7 @@ name: '', email: '', message: '', + phone: '', captchaToken: '', }; @@ -109,6 +110,10 @@ +
+ + +
diff --git a/src/routes/contact/submit.js b/src/routes/contact/submit.js index fd78dfc..da1ab59 100644 --- a/src/routes/contact/submit.js +++ b/src/routes/contact/submit.js @@ -28,6 +28,7 @@ export async function post({ request }) { subject: `Form Submission from ${body.name}`, text: ` Name: ${body.name} + Phone Number: ${body.phone || "Not Given"} Email: ${body.email} Message: ${body.message} `,