# Radio-Button im Formular-Generator, Wie?

**URL:** https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334
**Category:** Allgemein
**Created:** [22. Juni 2015 um 15:05 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334 "2015-06-22T15:05:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![WolfgangSchwarz](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@WolfgangSchwarz](https://forum.shopware.com/u/WolfgangSchwarz)
#### Post date: [22. Juni 2015 um 15:05 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/1 "2015-06-22T15:05:18Z")

</div>

Hallo, laut [Beschreibung](http://wiki.shopware.com/Formulare%5C_detail%5C_792.html) kann man im Formular-Generator auch Radio-Buttons anlegen. Tatsächlich stehen bei mir jedoch nur die Typen Text, Text2, Checkbox, Email, Select und Textara zur Verfügung. Liegt das an meiner Konfiguration, oder sind Radio-Buttons in den Formularen gar nicht möglich?

---

<div class="post-metadata">

### Author: ![TecMike](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TecMike](https://forum.shopware.com/u/TecMike)
#### Post date: [9. September 2015 um 09:46 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/2 "2015-09-09T09:46:04Z")

</div>

Hier möchten wir uns gerne auch anschließen. Das Problem der fehlenden Radiobuttons haben wir bereits dem Support mitgeteilt - aber bis dato haben wir hierzu auch noch keine Lösung gefunden. Wird es diese fehlende Funktion in 5.1 geben? Oder hat jemand schon eine Lösung parat?

---

<div class="post-metadata">

### Author: ![Marco\_H](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@Marco\_H](https://forum.shopware.com/u/Marco_H)
#### Post date: [25. April 2016 um 12:34 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/3 "2016-04-25T12:34:43Z")

</div>

Hallo zusammen, ich habe das gleiche Problem wie meine Vorredner:

Ich kann keine Radiobuttons in den Forms angeben. Obwohl im Hilfe-Text unter Options drin steht: “Für selects, checkboxes oder Radiobuttons bitte die Werte durch Semikolon trennen”. Es scheint also vorgesehen zu sein…

Könnte vielleicht einer der Shopware-Entwickler kurz Stellung nehmen, ob das Fehlen der Radiobutton-Option ein Bug oder noch ein fehlendes Feature ist? Oder ob hierfür irgendwo im Backend Einstellungen vorgenommen werden müssen…

Danke.

---

<div class="post-metadata">

### Author: ![WolfgangSchwarz](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@WolfgangSchwarz](https://forum.shopware.com/u/WolfgangSchwarz)
#### Post date: [5. August 2016 um 13:54 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/4 "2016-08-05T13:54:47Z")

</div>

Hallo,

nachdem auch ein Upgrade auf die 5.2 keine&nbsp;Änderung&nbsp;brachte, habe ich nun selber eine Lösung gefunden. Es ist recht simpel und es muss nur eine Zeile Code hinzugefügt werden.

Dazu muss die&nbsp;Datei **fieldgrid.js** &nbsp;geändert&nbsp;werden. Die Datei liegt unter **/themes/Backend/ExtJs/backend/form/view/main/**

Ab Zeile 258 findet man folgenden Code:

> &nbsp; &nbsp;getTypComboStore: function() {  
> &nbsp; &nbsp; &nbsp; &nbsp; return new Ext.data.SimpleStore({  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fields:[‚id‘, ‚label‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data: [  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚text‘, ‚Text‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚text2‘, ‚Text2‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚checkbox‘, ‚Checkbox‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚email‘, ‚Email‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚select‘, ‚select‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚textarea‘, ‚textarea‘]  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]  
> &nbsp; &nbsp; &nbsp; &nbsp; });  
> &nbsp; &nbsp; },

Hier fügt man dann einfach unter Data\*\*&nbsp;[‚radio‘, ‚Radio‘],\*\*&nbsp;ein. Sollte dann&nbsp;z.B. so ausschauen:

> &nbsp; &nbsp;getTypComboStore: function() {  
> &nbsp; &nbsp; &nbsp; &nbsp; return new Ext.data.SimpleStore({  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fields:[‚id‘, ‚label‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data: [  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚text‘, ‚Text‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚text2‘, ‚Text2‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚checkbox‘, ‚Checkbox‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚radio‘, ‚Radio‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚email‘, ‚Email‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚select‘, ‚select‘],  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [‚textarea‘, ‚textarea‘]  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]  
> &nbsp; &nbsp; &nbsp; &nbsp; });  
> &nbsp; &nbsp; },

Danach die Datei auf dem Server speichern und den Cache leeren.&nbsp;

Geht man nun im Backend unter Formulare, dann hat man jetzt auch die Auswahl des Radio-Buttons. Und dieser funktioniert auch im Frontend. Allerdings steht bei mir im Frontend&nbsp;der Text unter dem Button und nicht rechts daneben. Dies müsste sich mit etwas CSS beheben lassen. Wir hier einen Tipp hat, kann ihn hier gerne veröffentlichen.

---

<div class="post-metadata">

### Author: ![mrmoree](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mrmoree](https://forum.shopware.com/u/mrmoree)
#### Post date: [2. Juli 2018 um 14:18 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/5 "2018-07-02T14:18:26Z")

</div>

Thank you, that worked for me!

---

<div class="post-metadata">

### Author: ![raymond](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@raymond](https://forum.shopware.com/u/raymond)
#### Post date: [2. Juli 2018 um 14:27 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/6 "2018-07-02T14:27:19Z")

</div>

Gleiche Problem hier. Sollte dringend im Shopware Core gelöst werden.

Ich war mal so frei und habe ein Ticket aufgemacht: [Shopware Issuetracker](https://issues.shopware.com/issues/SW-22070)

Bitte voten!

---

<div class="post-metadata">

### Author: ![heiko813](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/heiko813/32/13083_2.png) [@heiko813](https://forum.shopware.com/u/heiko813)
#### Post date: [11. Juli 2023 um 10:29 UTC](https://forum.shopware.com/t/radio-button-im-formular-generator-wie/28334/7 "2023-07-11T10:29:37Z")

</div>

.forms–inner-form input[type=„radio“] {  
width: 20px;  
margin-top: 5px;  
margin-left: 10px;  
}
