# Eigenes Konfigurationsformular für Einkaufswelten Elemente

**URL:** <https://forum.shopware.com/t/eigenes-konfigurationsformular-fur-einkaufswelten-elemente/59665>\
**Category:** Programmierung\
**Created:** [22. Mai 2019 um 13:32 UTC](https://forum.shopware.com/t/eigenes-konfigurationsformular-fur-einkaufswelten-elemente/59665 "2019-05-22T13:32:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John1](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@John1](https://forum.shopware.com/u/John1)\
**Post date:** [22. Mai 2019 um 13:32 UTC](https://forum.shopware.com/t/eigenes-konfigurationsformular-fur-einkaufswelten-elemente/59665/1 "2019-05-22T13:32:57Z")

</div>

```
Ext.define('Shopware.apps.Emotion.view.components.MyElement', {
    extend: 'Shopware.apps.Emotion.view.components.Base',
    alias: 'widget.emotion-components-unsplash',

    /**
     * Override parent method to add image
     */
    createFormElements: function() {
        var me = this,
            items = me.callParent(arguments);

        items.push(me.createFields());
        console.log(items);
        return items;
    },

    createFields: function () {
        var me = this;

        me.image = Ext.create('Ext.Img', {
            src: 'https://source.unsplash.com/random/1600x900'
        });

        me.button = Ext.create('Ext.Button', {
            text: '{s name="unsplash_button"}Refresh{/s}',
            handler: function() {
                var search = me.down('textfield[name=search]').getValue(),
                    category = me.down('radiogroup').getValue().category;

                me.image.setSrc(me.getUrl(category, search));
            }
        });

        me.myTextField = Ext.create('Ext.form.field.Text', {
            fieldLabel: 'Task:',
            name: 'task',
            itemId: 'taskTextfield',
            autofocus: true,
            enableKeyEvents: true,
            labelAlign: 'left',
            labelWidth: 50,
            labelStyle: 'font-size: 16px;',
            width: 500,

        });

        return Ext.create('Ext.form.FieldSet', {
            title: '{s name="unsplash_preview"}Example image{/s}',
            layout: 'fit',
            margin: '10 0 10',
            items: [
                me.button,
                me.image,
                me.myTextField
            ]
        });
    },
....

```

Hallo,  
ich würde gern&nbsp; Konfigurationsformularelemente für ein eigenes Einkaufswelt-Element erstellen: Mein Problem ist, das der Inhalt in dem erstellten Textfeld nicht gespeichert wird.Ich habe mich an dem Bsp Digital Publishing Elements Tutorial orientiert. Kann mir jemand sagen was fehlt?&nbsp;

Viele Grüße  
&nbsp;
