diff --git a/resources/views/form/rapport-team3/1782972523-9113f86f-0d2e-4b78-81e8-ca5f14f6a0e1.blade.php b/resources/views/form/rapport-team3/1782972523-9113f86f-0d2e-4b78-81e8-ca5f14f6a0e1.blade.php index 696eeba6..74286b14 100644 --- a/resources/views/form/rapport-team3/1782972523-9113f86f-0d2e-4b78-81e8-ca5f14f6a0e1.blade.php +++ b/resources/views/form/rapport-team3/1782972523-9113f86f-0d2e-4b78-81e8-ca5f14f6a0e1.blade.php @@ -285,6 +285,53 @@ $('#field-city,#field-state,#field-departmental_head_name').on('input', function () { this.value = this.value.replace(/[^a-zA-Z\s]/g, ''); }); + + $('#field-revesmart_launch_to_hcps').on('change',function(){ + let value=$('#field-revesmart_launch_to_hcps').val(); + console.log("Value is :",value); + + if(value==='Yes'){ + $('#report-form').append(''); + } + + }) + + $('#field-revesmart_handwriting_activity').on('change',function(){ + let value=$('#field-revesmart_handwriting_activity').val(); + console.log("Value is :",value); + + if(value==='Yes'){ + $('#report-form').append(''); + } + + }) + + $('#field-dr_converted_for_revesmart').on('change',function(){ + let value=$('#field-dr_converted_for_revesmart').val(); + console.log("Value is :",value); + + if(value==='Yes'){ + $('#report-form').append(''); + } + + }) + + $('#field-chemist_availability').on('change',function(){ + let value=$('#field-chemist_availability').val(); + console.log("Value is :",value); + $('#report-form input.dynamic-hidden').remove(); + if(value==='First Time'){ + $('#report-form').append(''); + } + else if(value==='Repeat'){ + $('#report-form').append(''); + + } + else{ + $('#report-form').append(''); + } + + }) $('#report-form').on('submit', function(event){ diff --git a/resources/views/form/rapport-team3/1782973638-9df17c75-2c06-4735-96f4-67de099a7252.blade.php b/resources/views/form/rapport-team3/1782973638-9df17c75-2c06-4735-96f4-67de099a7252.blade.php index d25fec63..144f541f 100644 --- a/resources/views/form/rapport-team3/1782973638-9df17c75-2c06-4735-96f4-67de099a7252.blade.php +++ b/resources/views/form/rapport-team3/1782973638-9df17c75-2c06-4735-96f4-67de099a7252.blade.php @@ -284,6 +284,53 @@ $('#field-city,#field-state,#field-departmental_head_name').on('input', function () { this.value = this.value.replace(/[^a-zA-Z\s]/g, ''); }); + + $('#field-revesmart_launch_to_hcps').on('change',function(){ + let value=$('#field-revesmart_launch_to_hcps').val(); + console.log("Value is :",value); + + if(value==='Yes'){ + $('#report-form').append(''); + } + + }) + + $('#field-revesmart_handwriting_activity').on('change',function(){ + let value=$('#field-revesmart_handwriting_activity').val(); + console.log("Value is :",value); + + if(value==='Yes'){ + $('#report-form').append(''); + } + + }) + + $('#field-dr_converted_for_revesmart').on('change',function(){ + let value=$('#field-dr_converted_for_revesmart').val(); + console.log("Value is :",value); + + if(value==='Yes'){ + $('#report-form').append(''); + } + + }) + + $('#field-chemist_availability').on('change',function(){ + let value=$('#field-chemist_availability').val(); + console.log("Value is :",value); + $('#report-form input.dynamic-hidden').remove(); + if(value==='First Time'){ + $('#report-form').append(''); + } + else if(value==='Repeat'){ + $('#report-form').append(''); + + } + else{ + $('#report-form').append(''); + } + + }) $('#report-form').on('submit', function(event){