# Custom plugin configuration field

**URL:** <https://forum.shopware.com/t/custom-plugin-configuration-field/88617>\
**Category:** Programming (EN)\
**Created:** [25. Juni 2021 um 13:45 UTC](https://forum.shopware.com/t/custom-plugin-configuration-field/88617 "2021-06-25T13:45:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimvydas](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rimvydas](https://forum.shopware.com/u/rimvydas)\
**Post date:** [25. Juni 2021 um 13:45 UTC](https://forum.shopware.com/t/custom-plugin-configuration-field/88617/1 "2021-06-25T13:45:22Z")

</div>

Hello,

How exactly do you create custom fields? What Im trying to do is get all the shopware payment methods, loop them and for every payment method id a text field would be able to map some value to the payment method id.

What I have currently done:

config.xml

```auto
        <component name="payment-method-mapper">
            <name>mappedPaymentMethods</name>
            <entity>payment_method</entity>
            <label>Choose a payment methods for the plugin configuration</label>
        </component>

```

payment-method-mapper.html.twig

```auto
<sw-text-field v-model="$parent.value"></sw-text-field>

```

Currently Im able to get the all the shopware payment methods and display a text field but writing doesnt save any value. I would also would like to know how would I go about saving as a JSON of the mapped values?
