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 8af5a160..aed66b61 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 @@ -300,6 +300,9 @@ + + + {{-- --}} @foreach ($questions as $question)
@@ -735,6 +738,24 @@ $('#execution-month_of_engagement').val('').trigger('change'); } }); + + + $('#execution-activity').on('change', function() { + let activity=$(this).val(); + console.log("Activity selected in Plan:",activity); + + if (activity === 'Oscar Screening Camps') { + $('#count-plans-lhc').val('1'); + } + else if (activity === 'Novel') { + $('#count-plans-novel').val('1'); + } + else{ + + $('#count-plans-lhc').val('0'); + $('#count-plans-novel').val('0'); + } + }); })