# Button in Plugin-Konfiguration

**URL:** https://forum.shopware.com/t/button-in-plugin-konfiguration/10280
**Category:** Shopware 3.5
**Tags:** programming
**Created:** [4. Dezember 2012 um 14:44 UTC](https://forum.shopware.com/t/button-in-plugin-konfiguration/10280 "2012-12-04T14:44:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oli](https://avatars.discourse-cdn.com/v4/letter/o/2bfe46/32.png) [@oli](https://forum.shopware.com/u/oli)
#### Post date: [4. Dezember 2012 um 14:44 UTC](https://forum.shopware.com/t/button-in-plugin-konfiguration/10280/1 "2012-12-04T14:44:43Z")

</div>

Ich habe gerade das Beispiel aus diesem Wiki-Eintrag ausprobiert: [http://wiki.shopware.de/Plugin-Installa … tml#Button](http://wiki.shopware.de/Plugin-Installationsvorgang%5C_detail%5C_891.html#Button) So schauts bei mir aus: ` $form-\>setElement('button', 'testButton', array( 'label' =\> 'Test', 'attributes' =\> array( 'handler' =\> 'function() { alert("Button clicked"); }', ), ));` Plugin-Installation funktioniert einwandfrei, ich seh den Button in der Konfiguration, aber wenn man ihn klickt passiert nichts. Javascript Fehlerkonsole bleibt ebenfalls leer. Ideen?

---

<div class="post-metadata">

### Author: ![bui\_ak](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bui\_ak](https://forum.shopware.com/u/bui_ak)
#### Post date: [4. Dezember 2012 um 21:25 UTC](https://forum.shopware.com/t/button-in-plugin-konfiguration/10280/2 "2012-12-04T21:25:11Z")

</div>

das würde mich auch brennend interessieren! insbesondere bei $form-\>setElement(‘select’, …); würde ich gerne einen handler angeben können.

---

<div class="post-metadata">

### Author: ![DenKon26](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DenKon26](https://forum.shopware.com/u/DenKon26)
#### Post date: [7. September 2015 um 14:42 UTC](https://forum.shopware.com/t/button-in-plugin-konfiguration/10280/3 "2015-09-07T14:42:11Z")

</div>

Ich habe mal aus Spaß in ein anderes Plugin geschaut. Über das Paypal-Plugin wird kein attributes-Array übergeben, sondern es wird direkt ein handler gesetzt
