Add phone number field
This commit is contained in:
parent
09d685c063
commit
91c2b0b4b9
@ -7,6 +7,7 @@
|
||||
name: '',
|
||||
email: '',
|
||||
message: '',
|
||||
phone: '',
|
||||
captchaToken: '',
|
||||
};
|
||||
|
||||
@ -109,6 +110,10 @@
|
||||
<input id="name" type="text" class="form-control" bind:value={submission.name} placeholder="Johnny Appleseed" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="phone">Phone</label>
|
||||
<input id="phone" type="text" class="form-control" bind:value={submission.phone} placeholder="(208) 123-4567">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message">Message *</label>
|
||||
<textarea id="message" class="form-control" bind:value={submission.message} rows="3" placeholder="Hello! I would like to schedule a free 15-minute consultation..." required></textarea>
|
||||
|
@ -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}
|
||||
`,
|
||||
|
Loading…
Reference in New Issue
Block a user