FIX_CLAIM_STATUS_CHANGE : RV
This commit is contained in:
parent
15e1fb5a4a
commit
1b83ab979a
@ -569,6 +569,27 @@
|
||||
$('#claim_status_id').on('change', function() {
|
||||
updateClaimStatusDisplay($(this).val());
|
||||
// claimStatusFieldChanges()
|
||||
const selectedVal = $(this).val();
|
||||
const elementId = $(this).attr('id');
|
||||
|
||||
console.log('Selected Value:', selectedVal);
|
||||
console.log('Element ID:', elementId);
|
||||
|
||||
if(selectedVal == 2 || selectedVal == 14){
|
||||
$field = $('#non_id_reason')
|
||||
$field.prop('required', false);
|
||||
}else if(selectedVal == 1){
|
||||
|
||||
if($('#tpa_no').val() != ""){
|
||||
$field = $('#non_id_reason')
|
||||
$field.prop('required', false);
|
||||
var $parentDiv = $field.closest("div");
|
||||
$parentDiv.find("label[for='non_id_reason'] .text-danger").remove();
|
||||
}else{
|
||||
$field = $('#non_id_reason')
|
||||
$field.prop('required', true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function claimStatusFieldChanges(fields) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user