From 5e8459348f8d6356efd3725135e04716f9a9aabb Mon Sep 17 00:00:00 2001 From: zeeshan Date: Wed, 7 Oct 2026 17:26:29 +0530 Subject: [PATCH] Titans (Core HCP Connect Drive) - Number of Patient Hide/Show --- ...5bd1-442d-4226-bacf-5f12e647373d.blade.php | 72 +++++-------------- 1 file changed, 18 insertions(+), 54 deletions(-) diff --git a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php index e20687a1..fc253828 100644 --- a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php +++ b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php @@ -542,54 +542,10 @@ // Show Patients Screened only for LHC during Execution - const selectedActivity = ($('#execution-activity').val() || '').trim().toUpperCase(); + + - if (selectedActivity === 'Oscar Screening Camps') { - $('#execution-no_of_patients_screened') - .closest('.col-md-12') - .show(); - - $('#execution-no_of_patients_screened') - .prop('required', true); - } else { - $('#execution-no_of_patients_screened') - .closest('.col-md-12') - .hide(); - - $('#execution-no_of_patients_screened') - .prop('required', false) - .val(''); - } - - $('#execution-activity').off('change.patientsScreened').on('change.patientsScreened', function () { - - const activity = ($(this).val() || '').trim().toUpperCase(); - - if (activity === 'Oscar Screening Camps') { - - $('#execution-no_of_patients_screened') - .closest('.col-md-12') - .show(); - - $('#execution-no_of_patients_screened') - .prop('required', true); - - } else { - - $('#execution-no_of_patients_screened') - .closest('.col-md-12') - .hide(); - - $('#execution-no_of_patients_screened') - .prop('required', false) - .val(''); - } - - }); - - $('#execution-no_of_patients_screened') - .closest('.col-md-12') - .after('

Prescription Generated

'); + $('#execution-dpi,#execution-mdi,#execution-sync,#execution-cip').on('input', function() { var total=( @@ -603,7 +559,7 @@ $('#execution-total').val(total); - $('#execution-no_of_flutter_utilized').on('keyup', function () { + $('#execution-no_of_flutter_utilized').on('keyup', function () { let val = parseFloat($(this).val()); @@ -624,14 +580,22 @@ if(activityName==='Oscar Screening Camps'){ $('#execution-count-execution-lhc').val('1'); $('#execution-count-execution-novel').val('0'); + $('#execution-no_of_patients_screened').parent().show(); + $('#execution-no_of_patients_screened').prop('required', true); + + } else if(activityName==='Novel'){ $('#execution-count-execution-lhc').val('0'); $('#execution-count-execution-novel').val('1'); + $('#execution-no_of_patients_screened').parent().hide(); + $('#execution-no_of_patients_screened').prop('required', false); } else{ $('#execution-count-execution-lhc').val('0'); $('#execution-count-execution-novel').val('0'); + $('#execution-no_of_patients_screened').parent().hide(); + $('#execution-no_of_patients_screened').prop('required', false); } @@ -733,15 +697,15 @@ - $('#execution-no_of_patients_screened').on('input', function () { + $('#execution-no_of_patients_screened').on('input', function () { - let value = $(this).val(); + let value = $(this).val(); - // Remove everything except digits - value = value.replace(/[^0-9]/g, ''); + // Remove everything except digits + value = value.replace(/[^0-9]/g, ''); - $(this).val(value); - }); + $(this).val(value); + });