Team 3 (Tracker Form) Other Doctor Code
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m34s Details

This commit is contained in:
zeeshan 2026-11-20 15:14:38 +05:30
parent f17ad9e997
commit 428e06493b
1 changed files with 19 additions and 1 deletions

View File

@ -222,7 +222,25 @@
$('#field-contact_id').change(function() {
$('#field-speciality').val($('option:selected', this).attr('speciality'))
})
$('#field-contact_id').append('<option value="others">Others</option>');
$('#field-contact_id').append('<option value="others">Others</option>');
$('#field-contact_id').on('change',function(){
let dropDown=$('#field-contact_id').val();
if(dropDown==='Others'){
$('#field-other_doctor_name,#field-other_speciality,#field-other_msl_code').parent().show();
$('#field-other_doctor_name,#field-other_speciality,#field-other_msl_code').prop({"required":true});
$('#field-speciality,#field-msl_code').parent().hide();
$('#field-speciality,#field-msl_code').prop({"required":false});
}
else{
$('#field-other_doctor_name,#field-other_speciality,#field-other_msl_code').parent().hide();
$('#field-other_doctor_name,#field-other_speciality,#field-other_msl_code').prop({"required":false});
$('#field-speciality,#field-msl_code').parent().show();
$('#field-speciality,#field-msl_code').prop({"required":true});
}
})
},
});