relate field in sugar customer portal

hi everybody, 

i have created a relate field in case module as admin, and i want to show this relate field in sugar crm customer portal. this field is not showing in portal layout area. could we use relate field in portal layout. please confirm. 

Parents Reply Children
  • hi, to extend portal relate field you shall put the following JS in custom/clients/portal/fields/relate/relate.js

    ({
        /**
         * extends clients/portal/fields/relate/relate.js
         * Portal to target current version of field
         * Relate is the field type
         * Field is the view type
         */
        extendsFrom: 'PortalRelateField',
    
        _render() {
            //skip current parent, not tested
            var grandparent = Object.getPrototypeOf(Object.getPrototypeOf(this));
            grandparent._render.apply(this);
        }