diff --git a/app/contact/ContactClient.js b/app/contact/ContactClient.js index 223e987..6e8254c 100644 --- a/app/contact/ContactClient.js +++ b/app/contact/ContactClient.js @@ -11,7 +11,7 @@ export default function ContactClient() { lname: "", email: "", phone: "", - subject: "", + service: "", message: "", }); @@ -39,7 +39,7 @@ export default function ContactClient() { if (!formData.lname.trim()) errors.lname = "Last Name is required."; if (!formData.email.trim()) errors.email = "Email is required."; if (!formData.phone.trim()) errors.phone = "Phone is required."; - if (!formData.subject.trim()) errors.subject = "Subject is required."; + if (!formData.service.trim()) errors.service = "Please select a service."; if (!formData.message.trim()) errors.message = "Message is required."; if (!captchaToken) errors.captcha = "Please verify the CAPTCHA."; @@ -48,8 +48,8 @@ export default function ContactClient() { const emailData = { ...formData, - message: `Subject: ${formData.subject}

Message: ${formData.message}`, - to: "info@rapharehab.ca", + message: `Service: ${formData.service}

Message: ${formData.message}`, + to: "bloor@rapharehab.ca", senderName: "Rapha Rehab Contact Page", recaptchaToken: captchaToken, }; @@ -70,7 +70,7 @@ export default function ContactClient() { lname: "", email: "", phone: "", - subject: "", + service: "", message: "", }); setCaptchaToken(null); @@ -131,7 +131,7 @@ export default function ContactClient() {
-

6 – 4335 Bloor Street West
Etobicoke, M9C5S2

+

6 – 4335 Bloor Street West
Etobicoke, M9C 2A5

@@ -148,7 +148,7 @@ export default function ContactClient() {

How can we help?

- Please complete the contact information below and let us know your needs. + Please complete the contact information below and let us know your needs. Upon receipt of your information one of our team members will reach out.

@@ -181,17 +181,6 @@ export default function ContactClient() { {formErrors.lname && {formErrors.lname}} -
- - {formErrors.email && {formErrors.email}} -
-
{formErrors.phone}}
-
+
- {formErrors.subject && {formErrors.subject}} + {formErrors.email && {formErrors.email}}
-
+ {/* Services Dropdown */} +
+ + {formErrors.service && {formErrors.service}} +
+ +