diff --git a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php index b06eef62..3040c175 100644 --- a/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php +++ b/resources/views/form/rapport-zenova/1788239728-6f7f3c27-c5dc-4e6e-a042-aefd5681af3a.blade.php @@ -51,17 +51,6 @@ - - - - - - - - - - - @if($id) @@ -263,76 +252,65 @@ $('#field-msl_code').val($('option:selected', this).attr('msl_code')) }) + + + $('#field-contact_id').change(function() { $('#field-sankalp_lead_received_penvial').val($('option:selected', this).attr('lead_recieved')) if($('option:selected', this).attr('lead_recieved') === 'Yes') { - $('#report-form input[name="sankalp_lead_recieved"]').val(1); - } else { - $('#report-form input[name="sankalp_lead_recieved"]').val(0); + $('#report-form').append(''); } }) $('#field-contact_id').change(function() { - $('#field-sankalp_lead_enrolled_penvial').val($('option:selected', this).attr('lead_enrolled')) + $('#field-sankalp_lead_enrolled_penvial').val($('option:selected', this).attr('lead_enrolled')) + if($('option:selected', this).attr('lead_enrolled') === 'Yes') { - $('#report-form input[name="sankalp_lead_enrolled"]').val(1); - } else { - $('#report-form input[name="sankalp_lead_enrolled"]').val(0); + $('#report-form').append(''); } }) $('#field-contact_id').change(function() { $('#field-pmos_dr').val($('option:selected', this).attr('pmos_dr')) if($('option:selected', this).attr('pmos_dr') === 'Yes') { - $('#report-form input[name="pmos_dr_count"]').val(1); - } else { - $('#report-form input[name="pmos_dr_count"]').val(0); + $('#report-form').append(''); + } }) $('#field-contact_id').change(function() { $('#field-qbs_dr').val($('option:selected', this).attr('qbs_dr')) if($('option:selected', this).attr('qbs_dr') === 'Yes') { - $('#report-form input[name="qbs_dr_count"]').val(1); - } else { - $('#report-form input[name="qbs_dr_count"]').val(0); - } + $('#report-form').append(''); + } }) $('#field-contact_id').change(function() { $('#field-adboard_dr').val($('option:selected', this).attr('adboard_dr')) if($('option:selected', this).attr('adboard_dr') === 'Yes') { - $('#report-form input[name="adboard_dr_count"]').val(1); - } else { - $('#report-form input[name="adboard_dr_count"]').val(0); - } + $('#report-form').append(''); + } }) $('#field-contact_id').change(function() { $('#field-fb_live_dr').val($('option:selected', this).attr('fb_live_dr')) if($('option:selected', this).attr('fb_live_dr') === 'Yes') { - $('#report-form input[name="fb_live_dr_count"]').val(1); - } else { - $('#report-form input[name="fb_live_dr_count"]').val(0); + $('#report-form').append(''); } }) $('#field-contact_id').change(function() { $('#field-ecme_dr').val($('option:selected', this).attr('ecme_dr')) if($('option:selected', this).attr('ecme_dr') === 'Yes') { - $('#report-form input[name="ecme_dr_count"]').val(1); - } else { - $('#report-form input[name="ecme_dr_count"]').val(0); + $('#report-form').append(''); } }) $('#field-contact_id').change(function() { $('#field-rtm_dr').val($('option:selected', this).attr('rtm_dr')) if($('option:selected', this).attr('rtm_dr') === 'Yes') { - $('#report-form input[name="rtm_dr_count"]').val(1); - } else { - $('#report-form input[name="rtm_dr_count"]').val(0); + $('#report-form').append(''); } }) @@ -341,9 +319,7 @@ $('option:selected', this).attr('absi_camp') || '' ); if($('option:selected', this).attr('absi_camp') === 'Yes') { - $('#report-form input[name="absi_camp_count"]').val(1); - } else { - $('#report-form input[name="absi_camp_count"]').val(0); + $('#report-form').append(''); } }); $('#field-contact_id').change(function() { @@ -351,9 +327,7 @@ $('option:selected', this).attr('h1_cardio_conference') || '' ); if($('option:selected', this).attr('h1_cardio_conference') === 'Yes') { - $('#report-form input[name="h1_cardio_conference_count"]').val(1); - } else { - $('#report-form input[name="h1_cardio_conference_count"]').val(0); + $('#report-form').append(''); } });