From 931d556a7e3a09b79c7f19e5205929f8d3fec076 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Mon, 6 Apr 2026 17:20:23 +0530 Subject: [PATCH 1/3] FIX_LEAND_AND_BDS_FORM_VALIDATION --- app/Views/client_kyc.php | 5 +- app/Views/leads_form.php | 25 ++ app/Views/newClientModal.php | 16 ++ .../policy_transaction_endorsement_form.php | 16 ++ .../policy_transaction_inception_form.php | 16 ++ .../policy_transaction_inception_list.php | 4 +- dev_logs/2026-04-01.md | 74 ++++++ ...-06_inception_form_live_validation_plan.md | 92 +++++++ .../assets/js/pages/leads_form_validation.js | 247 ++++++++++++++++++ .../js/pages/new_client_modal_validation.js | 220 ++++++++++++++++ ...transaction_endorsement_form_validation.js | 166 ++++++++++++ ...y_transaction_inception_form_validation.js | 185 +++++++++++++ .../2026-04-06_opd_policy_terms_72_plan.md | 157 +++++++++++ 13 files changed, 1219 insertions(+), 4 deletions(-) create mode 100644 dev_logs/2026-04-06_inception_form_live_validation_plan.md create mode 100644 public/assets/js/pages/leads_form_validation.js create mode 100644 public/assets/js/pages/new_client_modal_validation.js create mode 100644 public/assets/js/pages/policy_transaction_endorsement_form_validation.js create mode 100644 public/assets/js/pages/policy_transaction_inception_form_validation.js create mode 100644 public/dev_logs/2026-04-06_opd_policy_terms_72_plan.md diff --git a/app/Views/client_kyc.php b/app/Views/client_kyc.php index 636b07a7..635f3db4 100755 --- a/app/Views/client_kyc.php +++ b/app/Views/client_kyc.php @@ -43,7 +43,7 @@
- +
@@ -92,6 +92,7 @@
+ +
@@ -706,6 +722,9 @@ if (res.status == true) { $('#appendArea_' + dataIncrement).append(res.data.html); + if (typeof window.refreshLeadsFormValidation === 'function') { + window.refreshLeadsFormValidation(); + } let policy_type_id = res.data.policy_type_id; let lead_type = res.data.lead_type; @@ -1076,6 +1095,9 @@ if (response.status == true) { console.log(response.message, 'SUCCESS'); $('#appendArea_' + dataIncrement).append(response.data); + if (typeof window.refreshLeadsFormValidation === 'function') { + window.refreshLeadsFormValidation(); + } console.log("Policy Type ID : ", policy_type_id); if (policy_type_id == 1 || policy_type_id == 6 || policy_type_id == 7) { @@ -1275,6 +1297,9 @@ `; container.appendChild(newRow); + if (typeof window.refreshLeadsFormValidation === 'function') { + window.refreshLeadsFormValidation(); + } //append mutli file html addFileField(increment); diff --git a/app/Views/newClientModal.php b/app/Views/newClientModal.php index 3d40798d..657dd832 100644 --- a/app/Views/newClientModal.php +++ b/app/Views/newClientModal.php @@ -1,4 +1,20 @@ + +