Espo.define('custom:views/contact/fields/name', ['views/fields/base'], function (Dep) { return Dep.extend({ //template: 'custom:contact/record/detail', // Here is your custom template. Omit if you don't need it. // middleView: 'custom:your-entity-type/record/detail-middle', // Here is your custom view. Omit if you don't need it. // sideView: 'custom:your-entity-type/record/detail-side', // Here is your custom view. Omit if you don't need it. // bottomView: 'custom:your-entity-type/record/detail-bottom', // Here is your custom view. Omit if you don't need it. afterRender: function () { console.log('asdsad'); Dep.prototype.afterRender.call(this); // Custom code to be invoked right after rendering, when DOM is avaiable. this.$el.find('label[data-name="name"]').addClass('hidden'); } }); });