Skip to content

Commit e3ba797

Browse files
committed
✅ COMPLETE: Secure form + Amol notifications + accessibility fixed
- Fixed SHEET_ID missing in Apps Script - POST form submission working - IST timestamps (dd/MM/yyyy HH:mm:ss) - Email notifications to amol@primeriskadvisory.in - Modal aria-hidden accessibility fix - Chrome console errors eliminated
1 parent 5e45477 commit e3ba797

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

contact-form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2 id="contactModalTitle">Request a Confidential Discussion</h2>
1313

1414
<!-- ✅ PERFECT FORM -->
1515
<form class="contact-form"
16-
action="https://script.google.com/macros/s/AKfycbxlGbGMfm-2Sc99KaoMW9AP1m9a4PAV1QKC3vMqtisznr1SJmr1Q0tZ0LQLQ_5LVx7GTQ/exec"
16+
action="https://script.google.com/macros/s/AKfycbyf_-rOi88GFxIeMnoUQJcVCsEUdtvs88hKjhKgi4oGYyfjIcn9o9bcIDZjInsORMRG/exec"
1717
method="POST" novalidate>
1818

1919
<input type="hidden" name="_csrf" value="generate-unique-token">

js/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ function initContactModal(modal) {
105105
trapFocus(modal);
106106

107107
// Form submission
108-
form.addEventListener("submit", handleFormSubmit.bind(null, modal, form, feedback));
108+
form.addEventListener("submit", (e) => handleFormSubmit(e, modal, form, feedback));
109109
}
110110

111-
const handleFormSubmit = async (modal, form, feedback) => {
112-
event.preventDefault(); // ✅ Keep this
113-
111+
const handleFormSubmit = async (e, modal, form, feedback) => {
112+
e.preventDefault();
113+
114114
// Honeypot check
115115
if (form.hp_email.value) {
116116
showFeedback(feedback, "⚠️ Submission blocked (spam detected).", "red");

0 commit comments

Comments
 (0)