| Line 21... |
Line 21... |
| 21 |
|
21 |
|
| 22 |
|
22 |
|
| 23 |
$(document).on('click', ".mk_submit_loi_form", function () {
|
23 |
$(document).on('click', ".mk_submit_loi_form", function () {
|
| 24 |
// Gather input values
|
24 |
// Gather input values
|
| 25 |
const referId = $('select[name="referId"]').val();
|
25 |
const referId = $('select[name="referId"]').val();
|
| - |
|
26 |
const stateHead = $('select[name="stateHead"]').val();
|
| - |
|
27 |
const bdm = $('select[name="bdm"]').val();
|
| 26 |
const billingAddress = $('select[name="billingAddress"]').val();
|
28 |
const billingAddress = $('select[name="billingAddress"]').val();
|
| 27 |
const acquiredDate = $('input[name="acquiredDate"]').val();
|
29 |
const acquiredDate = $('input[name="acquiredDate"]').val();
|
| 28 |
const firstName = $('input[name="firstName"]').val();
|
30 |
const firstName = $('input[name="firstName"]').val();
|
| 29 |
const lastName = $('input[name="lastName"]').val();
|
31 |
const lastName = $('input[name="lastName"]').val();
|
| 30 |
const mobile = $('input[name="mobile"]').val();
|
32 |
const mobile = $('input[name="mobile"]').val();
|
| Line 105... |
Line 107... |
| 105 |
if (!maritalStatus) missingFields.push('Marital Status');
|
107 |
if (!maritalStatus) missingFields.push('Marital Status');
|
| 106 |
if (maritalStatus == 1) {
|
108 |
if (maritalStatus == 1) {
|
| 107 |
if (!anniversaryDate) missingFields.push('Anniversary Date');
|
109 |
if (!anniversaryDate) missingFields.push('Anniversary Date');
|
| 108 |
}
|
110 |
}
|
| 109 |
if (!email) missingFields.push('Email');
|
111 |
if (!email) missingFields.push('Email');
|
| - |
|
112 |
if (!referId) missingFields.push('Refer By');
|
| - |
|
113 |
if (!bdm) missingFields.push('Bdm');
|
| - |
|
114 |
if (!stateHead) missingFields.push('State head');
|
| 110 |
if (!acquiredDate) missingFields.push('Acquired date');
|
115 |
if (!acquiredDate) missingFields.push('Acquired date');
|
| 111 |
if (!dob) missingFields.push('dob(Date of Birth)');
|
116 |
if (!dob) missingFields.push('dob(Date of Birth)');
|
| 112 |
if (age <= 18) missingFields.push('You must be at least 18 years old to Fill LOI FORM. ');
|
117 |
if (age <= 18) missingFields.push('You must be at least 18 years old to Fill LOI FORM. ');
|
| 113 |
if (!panNo) missingFields.push('Pan Number');
|
118 |
if (!panNo) missingFields.push('Pan Number');
|
| 114 |
if (!adharNo) missingFields.push('Aadhar Number');
|
119 |
if (!adharNo) missingFields.push('Aadhar Number');
|
| Line 132... |
Line 137... |
| 132 |
alert('The following fields are required: ' + missingFields.join(', '));
|
137 |
alert('The following fields are required: ' + missingFields.join(', '));
|
| 133 |
return;
|
138 |
return;
|
| 134 |
}
|
139 |
}
|
| 135 |
const loiFormData = {
|
140 |
const loiFormData = {
|
| 136 |
referId: referId,
|
141 |
referId: referId,
|
| - |
|
142 |
stateHead: stateHead,
|
| - |
|
143 |
bdm: bdm,
|
| 137 |
businessType: businessType,
|
144 |
businessType: businessType,
|
| 138 |
acquiredDate: acquiredDate,
|
145 |
acquiredDate: acquiredDate,
|
| 139 |
firstName: firstName,
|
146 |
firstName: firstName,
|
| 140 |
lastName: lastName,
|
147 |
lastName: lastName,
|
| 141 |
mobile: mobile,
|
148 |
mobile: mobile,
|