Team 3 (Tracker Form) Other Doctor Code
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m34s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m34s
Details
This commit is contained in:
parent
f17ad9e997
commit
428e06493b
|
|
@ -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});
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue