diff --git a/resources/views/form/rapport-arise/1779187275-848fd8f3-6ea2-4521-9d85-85ec424fa8d5.blade.php b/resources/views/form/rapport-arise/1779187275-848fd8f3-6ea2-4521-9d85-85ec424fa8d5.blade.php index 16048027..aaf85c52 100644 --- a/resources/views/form/rapport-arise/1779187275-848fd8f3-6ea2-4521-9d85-85ec424fa8d5.blade.php +++ b/resources/views/form/rapport-arise/1779187275-848fd8f3-6ea2-4521-9d85-85ec424fa8d5.blade.php @@ -329,17 +329,15 @@ // reset category dropdown $('#field-select-category').val(''); - // clear doctor dropdown + // reset doctor dropdown $('#field-contact_id').html(''); - // add default option again $('#field-contact_id').append( $("") .attr("value",'') .text('-- Select --') ); - // stop execution return; } filteredDoctors.forEach(function(itm){ @@ -450,14 +448,11 @@ $('#field-converted').on('change', function () { .replace(/\s+/g, '_') .replace(/-+/g, '_'); - + if (value === 'Yes') { $('#report-form').append( '' ); - - - - + } }); function toggleUploadFields() { @@ -552,8 +547,14 @@ $(document).on('change', '#field-converted', function () { alert('Only JPG and PDF files are allowed.'); $(this).val(''); } + }); - + @if($id) + setTimeout(function () { + console.log("EDIT MODE TRIGGERED"); + $('#field-select-category').trigger('change'); + }, 300); + @endif $('#report-form').on('submit', function(event){ event.preventDefault(); $("#pageloader").fadeIn();