diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 10294b98..9fb5cbfe 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -2080,6 +2080,9 @@ if ($(this).is(':checked')) { // Hide all + $('[name="cd_ac_no_for_child[]"]').val(''); + $('[id^="cd_current_balance_"]').val(''); + $('[name="cd_ac_no_for_child[]"]').hide(); $('[id^="cd_current_balance_"]').hide(); @@ -2087,6 +2090,10 @@ $('#cd_ac_no_' + uniqueid).show(); $('#cd_current_balance_' + uniqueid).show(); } else { + + $('[name="cd_ac_no_for_child[]"]').val(''); + $('[id^="cd_current_balance_"]').val(''); + // Show all back $('[name="cd_ac_no_for_child[]"]').show(); $('[id^="cd_current_balance_"]').show(); @@ -3365,8 +3372,16 @@ $('input[name="co_ter_premium[]"]').addClass('readonly-select'); $('#co_ter_premium_' + value).removeClass('readonly-select'); - $('input[name="cd_ac_no_for_child[]"]').addClass('readonly-select'); - $('#cd_ac_no_' + value).removeClass('readonly-select'); + + $('[name="cd_ac_no_for_child[]"]').hide(); + $('[id^="cd_current_balance_"]').hide(); + + // Show only current one + $('#cd_ac_no_' + value).show(); + $('#cd_current_balance_' + value).show(); + + // $('input[name="cd_ac_no_for_child[]"]').addClass('readonly-select'); + // $('#cd_ac_no_' + value).removeClass('readonly-select'); } } @@ -3722,11 +3737,11 @@ const selectedValue = $(currentSelect).val(); - if (selectedValue) { - $('.follow_insurer_cd').not(currentSelect).prop('disabled', true); - } else { - $('.follow_insurer_cd').prop('disabled', false); - } + // if (selectedValue) { + // $('.follow_insurer_cd').not(currentSelect).prop('disabled', true); + // } else { + // $('.follow_insurer_cd').prop('disabled', false); + // } } function removeAllColumnsExceptFirst(tableId) {