Commit 21808de3 authored by Deep Dey's avatar Deep Dey

feat: allow duplicate father email for twin child

parent 3a861909
...@@ -185,6 +185,12 @@ ...@@ -185,6 +185,12 @@
<input type="text" name="fatherName" class="la-form-control"> <input type="text" name="fatherName" class="la-form-control">
<div class="la-invalid-feedback"></div> <div class="la-invalid-feedback"></div>
</div> </div>
<div class="la-form-group form-check">
<input id="checkFatherEmail" name="checkFatherEmail" class="form-check-input" type="checkbox" value="">
<label class="form-check-label" for="flexCheckDefault">
Please check this, If you have twins and already filled this form before with a email address and use the same email here.
</label>
</div>
<div class="la-form-group"> <div class="la-form-group">
<label for="fatherEmail">Email <span>*</span></label> <label for="fatherEmail">Email <span>*</span></label>
<input type="email" name="fatherEmail" class="la-form-control"> <input type="email" name="fatherEmail" class="la-form-control">
...@@ -391,9 +397,9 @@ ...@@ -391,9 +397,9 @@
</div> </div>
<!-- end of image section --> <!-- end of image section -->
<div class="la-form-group form-check"> <div class="la-form-group form-check">
<input class="form-check-input" name="formSubmitCheck" type="checkbox" value="" id="formSubmitCheck"> <input class="form-check-input" name="formSubmitCheck" type="checkbox" id="formSubmitCheck">
<label class="form-check-label text-justify" for="flexCheckDefault"> <label class="form-check-label text-justify" for="flexCheckDefault">
Before submitting the form, Please make sure that, the provided information is all correct because once submitted, it can't be changed. Please check this before submitting the form, and make sure that, the provided information is all correct because once submitted, it can't be changed.
</label> </label>
</div> </div>
<div class="form-btn"> <div class="form-btn">
......
...@@ -236,6 +236,14 @@ $(document).ready(function () { ...@@ -236,6 +236,14 @@ $(document).ready(function () {
var formData = new FormData(form); var formData = new FormData(form);
let jsonData = {}; let jsonData = {};
$('#checkFatherEmail').each(function () {
if (!this.checked) {
formData.set('checkFatherEmail', true);
} else {
formData.set('checkFatherEmail', false);
}
});
//TODO: validate the form for custom validations //TODO: validate the form for custom validations
let reconfiguredFormData = reconfigureFormData(formData); let reconfiguredFormData = reconfigureFormData(formData);
......
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