pulmocare - User Mapping form changes field not mapping to data properly
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m28s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m28s
Details
This commit is contained in:
parent
2e67931d5a
commit
8e535caf4a
|
|
@ -266,7 +266,7 @@
|
|||
|
||||
});
|
||||
|
||||
$('#field-employee_code, #field-emp_code_previous_employee, #field-l1_managers_emp_code, #field-l2_managers_emp_code').on('input', function () {
|
||||
$('#field-employee_code_01, #field-emp_code_previous_employee, #field-l1_managers_emp_code, #field-l2_managers_emp_code').on('input', function () {
|
||||
this.value = this.value.replace(/[^0-9]/g, '');
|
||||
});
|
||||
|
||||
|
|
@ -274,7 +274,7 @@
|
|||
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
|
||||
});
|
||||
|
||||
$('#field-email').on('blur', function () {
|
||||
$('#field-email_01').on('blur', function () {
|
||||
let email = $(this).val().trim();
|
||||
let emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||
|
||||
|
|
@ -299,6 +299,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
$('#field-upload_doctor_list').on('change', function () {
|
||||
let file = this.files[0];
|
||||
|
||||
|
|
@ -372,6 +373,20 @@
|
|||
|
||||
$('#report-form').on('submit', function(event){
|
||||
event.preventDefault();
|
||||
let mobile = $('#field-mobile_number').val().trim();
|
||||
|
||||
if (!/^[6-9]\d{9}$/.test(mobile)) {
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Invalid Mobile Number',
|
||||
text: 'Please enter a valid 10-digit mobile number starting with 6, 7, 8, or 9.'
|
||||
}).then(() => {
|
||||
$('#field-mobile_number').focus();
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#pageloader").fadeIn();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
|
|
|
|||
Loading…
Reference in New Issue