"),this.formData.headerRow&&(o=$("| ").text(t.name),n.append(o));let e=t.name;this.formData.attributeList&&(e=this.formData.attributeList[i]||null);var s=this.getFieldDropdown(i,e),s=(o=$(" | ").append(s),n.append(o),t.value||"");if(200").css("overflow","hidden").text(s),n.append(o),~["update","createAndUpdate"].indexOf(this.formData.action)){let e=$("").attr("type","checkbox").attr("id","update-by-"+i.toString());this.formData.updateBy?~this.formData.updateBy.indexOf(i)&&e.attr("checked",!0):"id"===t.name&&e.attr("checked",!0),o=$("| ").append(e),n.append(o)}a.append(n)}),e.empty(),e.append(i),this.formData.defaultFieldList&&this.formData.defaultFieldList.forEach(e=>{this.addField(e)})}getFieldList(){var e,t,i=this.getMetadata().get("entityDefs."+this.scope+".fields");let s=this.getAcl().getScopeForbiddenFieldList(this.scope,"edit"),a=[];for(e in i)~s.indexOf(e)||(t=i[e],!~this.allowedFieldList.indexOf(e)&&(t.disabled||t.importDisabled)||a.push(e));return a=a.sort((e,t)=>this.translate(e,"fields",this.scope).localeCompare(this.translate(t,"fields",this.scope)))}getAttributeList(){var e,i=this.getMetadata().get(["entityDefs",this.scope,"fields"])||{};let s=this.getAcl().getScopeForbiddenFieldList(this.scope,"edit"),a=[];a.push("id");for(let t in i)~s.indexOf(t)||(e=i[t],!~this.allowedFieldList.indexOf(t)&&(e.disabled&&!e.importNotDisabled||e.importDisabled)||("phone"!==e.type?("email"===e.type&&(a.push(t+"2"),a.push(t+"3"),a.push(t+"4")),"link"===e.type&&(a.push(t+"Name"),a.push(t+"Id")),~["foreign"].indexOf(e.type)||("personName"===e.type&&a.push(t),e=e.type,(e=(e=this.getFieldManager().getActualAttributeList(e,t)).length?e:[t]).forEach(e=>{-1===a.indexOf(e)&&a.push(e)}))):(a.push(t),(this.getMetadata().get("entityDefs."+this.scope+".fields."+t+".typeList")||[]).map(e=>e.replace(/\s/g,"_")).forEach(e=>{a.push(t+Espo.Utils.upperCaseFirst(e))}))));return a=a.sort((e,t)=>this.translate(e,"fields",this.scope).localeCompare(this.translate(t,"fields",this.scope)))}getFieldDropdown(e,s){s=s||!1;let t=this.getAttributeList(),a=$(" | |