# Custom fields with customer entity not showing the names

**URL:** <https://forum.shopware.com/t/custom-fields-with-customer-entity-not-showing-the-names/86589>\
**Category:** Shopware 6 (English)\
**Created:** [31. März 2021 um 05:29 UTC](https://forum.shopware.com/t/custom-fields-with-customer-entity-not-showing-the-names/86589 "2021-03-31T05:29:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [31. März 2021 um 05:29 UTC](https://forum.shopware.com/t/custom-fields-with-customer-entity-not-showing-the-names/86589/1 "2021-03-31T05:29:56Z")

</div>

Custom fields with customer entity not showing the names

The customer table does not have a name field. product and category have name fields.

So the following function in the file

/platform/src/Administration/Resources/app/administration/src/app/component/form/select/entity/sw-entity-multi-select/index.js

```
    displayLabelProperty(item) {
        const labelProperties = [];

        if (Array.isArray(this.labelProperty)) {
            labelProperties.push(...this.labelProperty);
        } else {
            labelProperties.push(this.labelProperty);
        }

        return labelProperties.map(labelProperty => {
            return this.getKey(item, labelProperty) || this.getKey(item, `translated.${labelProperty}`);
        }).join(' ');
    }
    
    Always return empty. label property default value name.
    
    The customer has a first name and last name so it is not showing.
    
    Is there any quick fix for this?
```

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [31. März 2021 um 06:07 UTC](https://forum.shopware.com/t/custom-fields-with-customer-entity-not-showing-the-names/86589/2 "2021-03-31T06:07:02Z")

</div>

Add ‚labelProperty‘ =\> [‚firstName‘, ‚lastName‘] in custom field.

```
            'customFields' => [
                [
                    'id' => Uuid::randomHex(),
                    'name' => 'bbna_sales_manager_assigned_customers',
                    'type' => 'select',
                    'config' => [
                        'label' => [
                            'en-GB' => 'Assign customers to sales manager',
                            'de-DE' => 'Weisen Sie dem Verkaufsleiter Kunden zu'
                        ],
                        'componentName' => 'sw-entity-multi-id-select',
                        'customFieldType' => 'select',
                        'customFieldPosition' => 1,
                        'entity' => 'customer',
                        'labelProperty' => ['firstName', 'lastName']
                    ],
                ],
            ],
```
