# Shopware.form.field.Search displayField konfigurieren

**URL:** <https://forum.shopware.com/t/shopware-form-field-search-displayfield-konfigurieren/38444>\
**Category:** Programmierung\
**Created:** [22. Juli 2016 um 06:20 UTC](https://forum.shopware.com/t/shopware-form-field-search-displayfield-konfigurieren/38444 "2016-07-22T06:20:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tim\_netztronauten](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@tim\_netztronauten](https://forum.shopware.com/u/tim_netztronauten)\
**Post date:** [18. November 2016 um 15:52 UTC](https://forum.shopware.com/t/shopware-form-field-search-displayfield-konfigurieren/38444/3 "2016-11-18T15:52:51Z")

</div>

Hallo Lenz, ja, ich habe eine Lösung gefunden. Wie in&nbsp;[Backend Components - Associations](https://developers.shopware.com/developers-guide/backend-components/associations/) beschrieben, wird bei einer ManyToOne Assoziation der Store für die ComboBox generiert. Wenn Du den selbst erstellst, kannst Du das displayField anpassen. Mit dem Code aus dem Tutorial sähe das ungefähr so aus:

> someField: { fieldLabel: ‚Some Field‘, displayField: ‚‘, // hier dementsprechend das displayField anpassen store: Ext.create(‚Ext.data.Store‘, { model: ‚Shopware.apps.Base.model.Tax‘, proxy: { type: ‚ajax‘, url: ‚{url controller=„SwagProduct“ action=„searchAssociation“}‘, reader: { type: ‚json‘, root: ‚data‘, totalProperty: ‚total‘ }, extraParams: { association: ‚tax‘ } } }); }

Verstehst Du wie ich meine? Model, controller, association wäre natürlich alles anzupassen, die action bleibt aber so.

Beste Grüße, Tim

---

_[View the full topic](https://forum.shopware.com/t/shopware-form-field-search-displayfield-konfigurieren/38444)._
