//replace with parent form id const parent_form_id = 23; //replace with dropdown field id const dropdown_field_id = 1; // Replace with Nested Field ID (the id of the nested form on the parent form) const nestedFieldID = 1; let hasEntries = window[`GPNestedForms_${parent_form_id}_${nestedFieldID}`].entries.length; if (hasEntries) { let entries = window[ `GPNestedForms_${parent_form_id}_${nestedFieldID}`].entries; $(`#input_${GFFORMID}_${dropdown_field_id} > option`).each(function () { let duplicate = false; let option = this; entries.forEach(function (entry) { if ( entry[1].label === option.text ){ option.disabled = true; } }); }); }