From 0debf5b4561626beab1d28ba5ba717111e60c8ae Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 2 Feb 2026 14:16:52 +0000 Subject: [PATCH] Add separate first name and last name fields to application form Fixes validation error when last name was missing because single name field was being split. Co-Authored-By: Claude Opus 4.5 --- apply.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/apply.html b/apply.html index 45ba7f9..bdc150f 100644 --- a/apply.html +++ b/apply.html @@ -372,9 +372,15 @@
Question 1 of 13

Contact Information

-
- - +
+
+ + +
+
+ + +
@@ -881,13 +887,10 @@ function collectFormData() { const form = document.getElementById('application-form'); - const nameParts = form.name.value.trim().split(' '); - const firstName = nameParts[0] || ''; - const lastName = nameParts.slice(1).join(' ') || ''; return { - first_name: firstName, - last_name: lastName, + first_name: form.first_name.value.trim(), + last_name: form.last_name.value.trim(), email: form.email.value, social_links: form.social_media.value, contact_other: form.contact_other.value,