Add phone number field
This commit is contained in:
parent
09d685c063
commit
91c2b0b4b9
@ -7,6 +7,7 @@
|
|||||||
name: '',
|
name: '',
|
||||||
email: '',
|
email: '',
|
||||||
message: '',
|
message: '',
|
||||||
|
phone: '',
|
||||||
captchaToken: '',
|
captchaToken: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -109,6 +110,10 @@
|
|||||||
<input id="name" type="text" class="form-control" bind:value={submission.name} placeholder="Johnny Appleseed" required>
|
<input id="name" type="text" class="form-control" bind:value={submission.name} placeholder="Johnny Appleseed" required>
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="form-group">
|
||||||
<label for="message">Message *</label>
|
<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>
|
<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}`,
|
subject: `Form Submission from ${body.name}`,
|
||||||
text: `
|
text: `
|
||||||
Name: ${body.name}
|
Name: ${body.name}
|
||||||
|
Phone Number: ${body.phone || "Not Given"}
|
||||||
Email: ${body.email}
|
Email: ${body.email}
|
||||||
Message: ${body.message}
|
Message: ${body.message}
|
||||||
`,
|
`,
|
||||||
|
Loading…
Reference in New Issue
Block a user