# Is it possible to add custom values to single selection free text in shopware 5?

**URL:** <https://forum.shopware.com/t/is-it-possible-to-add-custom-values-to-single-selection-free-text-in-shopware-5/72109>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [15. Januar 2021 um 06:13 UTC](https://forum.shopware.com/t/is-it-possible-to-add-custom-values-to-single-selection-free-text-in-shopware-5/72109 "2021-01-15T06:13:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [15. Januar 2021 um 06:13 UTC](https://forum.shopware.com/t/is-it-possible-to-add-custom-values-to-single-selection-free-text-in-shopware-5/72109/1 "2021-01-15T06:13:48Z")

</div>

Is it possible to add custom values to single selection free text in Shopware 5?

for example, I want to create a single selection in the backend category edit page with values „default“ template and „custom“ template using free text fields.&nbsp;

is it possible?

```
$attributeCrudService->update('s_categories_attributes', 'article_detail_template', 'single_selection', [
'displayInBackend' => true,

'label' => 'Article detail page template',

'values' => ['default', 'custom'],

]);

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [4. Mai 2021 um 05:56 UTC](https://forum.shopware.com/t/is-it-possible-to-add-custom-values-to-single-selection-free-text-in-shopware-5/72109/2 "2021-05-04T05:56:07Z")

</div>

You can use combobox

For example

```
$this->crudService->update(
    's_articles_attributes',
    'nfx_do_default_delivery',
    'combobox',
    [
        'label' => 'Standardlieferart',
        'helpText' => 'Standardversandmethode für dieses Produkt.',
        'displayInBackend' => true,
        'position' => 2,
        'custom' => 1,
        'arrayStore' => [
            ['key' => 'pickup', 'value' => 'Click & Collect'],
            ['key' => 'delivery', 'value' => 'Lieferung'],
        ],
    ]
);
```
