Commit a30c2ef8 authored by Deep Dey's avatar Deep Dey

fix: fix form-name issue

parent a0785ca0
......@@ -87,8 +87,8 @@
<div class="la-invalid-feedback"></div>
</div>
<div class="form-group">
<label for="communty">Community <span>*</span></label>
<input type="text" name="communty" class="form-control">
<label for="community">Community <span>*</span></label>
<input type="text" name="community" class="form-control">
<div class="la-invalid-feedback"></div>
<small>Socio- Linguistic community (eg Bengali, Punjabi, Marwari, Jain etc.)</small>
</div>
......
......@@ -78,7 +78,7 @@ $(document).ready(function () {
nationality: 'required',
religion: 'required',
motherTongue: 'required',
communty: 'required',
community: 'required',
maritalStatus: 'required',
fatherName: 'required',
fatherEmail: 'required',
......@@ -127,7 +127,7 @@ $(document).ready(function () {
nationality: 'Please enter the nationality',
religion: 'Please enter the religion',
motherTongue: 'Please enter the mother tongue',
communty: 'Please specify the community',
community: 'Please specify the community',
maritalStatus: 'Please choose an option',
fatherName: "Please enter the father's name",
fatherEmail: "Please enter the father's email",
......@@ -197,8 +197,10 @@ $(document).ready(function () {
if (xhr.responseText) {
var errorMessage = JSON.parse(xhr.responseText).message;
console.error('Server Response:', errorMessage);
alert(errorMessage.message);
} else {
console.error('No response from server');
alert('No response from server');
}
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment