diff --git a/resources/views/form/rapport-team4/1792664918-ada51173-8218-418c-8173-7992580c9a6a.blade.php b/resources/views/form/rapport-team4/1792664918-ada51173-8218-418c-8173-7992580c9a6a.blade.php index c1c0a231..d2f1f70a 100644 --- a/resources/views/form/rapport-team4/1792664918-ada51173-8218-418c-8173-7992580c9a6a.blade.php +++ b/resources/views/form/rapport-team4/1792664918-ada51173-8218-418c-8173-7992580c9a6a.blade.php @@ -206,9 +206,10 @@ $("#pageloader").fadeOut(); $('#field-contact_id').html('') $('#field-contact_id').append($("").attr("value",'').text('-- Select --')); - for (let itm of data) { - $('#field-contact_id').append($("").attr("value",itm.value).text(itm.display).attr("msl_code", itm.contact.msl_code).attr('speciality',itm.contact.speciality)); - } + if(itm.contact.hasOwnProperty('ardc_camps_ardc_poster_execution_dr_tagging') && itm.contact.ardc_camps_ardc_poster_execution_dr_tagging.toLowerCase() == 'yes') { + console.log(itm) + $('#field-contact_id').append($("").attr("msl_code", itm.contact.legacy_code).attr("value", itm.value).text(itm.display)); + } $('#field-contact_id').change(function() { $('#field-msl_code').val($('option:selected', this).attr('msl_code'))