diff --git a/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php b/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php index 082f5c59..0fd30d9e 100644 --- a/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php +++ b/resources/views/form/rapport-zenova/1787826441-be2c0187-515b-4b5d-a97a-91d1648b0379.blade.php @@ -340,6 +340,121 @@ $('#field-select_brand').on('change', function () { $(document).ready(function () { $('#field-select_brand').trigger('change'); }); + + $('#field-sankalp_lead_received_penvial').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="sankalp_recieved"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + $('#field-sankalp_lead_enrolled_penvial').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="sankalp_enrolled"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + + $('#field-pmos_dr').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="pmos_dr"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + $('#field-qbs_dr').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="qbs_dr"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + $('#field-adboard_dr').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="adboard_dr"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + $('#field-fb_live_dr').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="fb_live_dr"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + $('#field-ecme_dr').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="ecme_dr"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + + + $('#field-rtm_dr').on('change', function () { + let value = $(this).val(); + + // Pehle existing hidden input hata do + $('input[name="rtm_dr"]').remove(); + + // Sirf Yes pe value bhejo + if (value === 'Yes') { + $('#report-form').append( + '' + ); + } + }); + $('#report-form').on('submit', function(event){