diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index c2b40938..d9898f31 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -2068,6 +2068,7 @@ $('#client_branch_id').prop('required', false); $('#table_tr_34').hide(); $('#table_tr_37').hide(); + $("select[name='cd_ac_no_for_child[]']").removeAttr("required"); } else { $('#policyholdernamediv').hide(); @@ -2075,6 +2076,7 @@ $('#client_branch_id').prop('required', true); $('#table_tr_34').show(); $('#table_tr_37').show(); + $("select[name='cd_ac_no_for_child[]']").attr('required', 'required'); } //Vehicle File Upload Tab Hide And show @@ -3856,11 +3858,13 @@ $('#owner_branch').prop('required', false); $('#table_tr_34').hide(); $('#table_tr_37').hide(); + $("select[name='cd_ac_no_for_child[]']").removeAttr("required"); } else { $('.ownerbranchdiv').show(); $('#owner_branch').prop('required', true); $('#table_tr_34').show(); $('#table_tr_37').show(); + $("select[name='cd_ac_no_for_child[]']").attr('required', 'required'); } // console.log('selected Owner type', selectedClientType); @@ -5151,10 +5155,12 @@ $('.branchdiv').show(); $('#table_tr_34').show(); $('#table_tr_37').show(); + $("select[name='cd_ac_no_for_child[]']").attr("required", true); }else{ $('.branchdiv').hide(); $('#table_tr_34').hide(); $('#table_tr_37').hide(); + $("select[name='cd_ac_no_for_child[]']").removeAttr("required"); } $('#client_type').val(response.data?.client_type ?? "").trigger('change'); } else {