# Config.xml - \<defaultValue\> single-select fehlerhaft?

**URL:** https://forum.shopware.com/t/config-xml-defaultvalue-single-select-fehlerhaft/88914
**Category:** Programmierung
**Created:** [6. Juli 2021 um 20:21 UTC](https://forum.shopware.com/t/config-xml-defaultvalue-single-select-fehlerhaft/88914 "2021-07-06T20:21:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![myshoptheme](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@myshoptheme](https://forum.shopware.com/u/myshoptheme)
#### Post date: [6. Juli 2021 um 20:21 UTC](https://forum.shopware.com/t/config-xml-defaultvalue-single-select-fehlerhaft/88914/1 "2021-07-06T20:21:46Z")

</div>

Moin,

habe ein single-select und möchte einen default-Value mitgeben… funktioniert normalerweise auch… nicht aber, wenn die option-id eine Zahl ist.

```auto
<input-field type="single-select">
    <name>foobar</name>
    <label>foobar</label>
    <options>
        <option>
            <id>1</id>
            <name>foo</name>
        </option>
        <option>
            <id>2</id>
            <name>bar</name>
        </option>
    </options>
    <defaultValue>2</defaultValue>
</input-field>

```

Der default-Value führt nicht zu einer Vorauswahl…

---

<div class="post-metadata">

### Author: ![myshoptheme](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@myshoptheme](https://forum.shopware.com/u/myshoptheme)
#### Post date: [9. August 2021 um 06:56 UTC](https://forum.shopware.com/t/config-xml-defaultvalue-single-select-fehlerhaft/88914/2 "2021-08-09T06:56:53Z")

</div>

Ist das ein Fehler in Shopware oder bei mir?
