# How to format the additional\_info field for a Metadata "selection"

**URL:** <https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667>\
**Category:** Pydio 8\
**Created:** [February 10, 2018, 7:33pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667 "2018-02-10T19:33:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![r0bbyt](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@r0bbyt](https://forum.pydio.com/u/r0bbyt)\
**Post date:** [February 10, 2018, 7:33pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/1 "2018-02-10T19:33:51Z")

</div>

I’d like to add a selection (choice) metadata field to a workspace. According to the docs, the format of the additional\_info field should be like:

> Selection: A select box with a set of value that you can define using the “Additional Info” field, using the following syntax: key1|Label 1,key2|Label 2,key3|Label 3

However, this does not work for me. The selection dropdown is always empty, regardless of how I format this field.

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [February 15, 2018, 1:46pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/2 "2018-02-15T13:46:56Z")

</div>

Hi,  
are you talking about this feature ?

[image](https://prnt.sc/if418o)

---

<div class="post-metadata">

**Author:** ![r0bbyt](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@r0bbyt](https://forum.pydio.com/u/r0bbyt)\
**Post date:** [February 19, 2018, 4:28pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/3 "2018-02-19T16:28:42Z")

</div>

Yes. How should I format the selection options in additional\_info field?

Either the docs are incorrect, or there’s a bug with displaying the selection options.

I added the Selection metadata field, and added selection options to the additional\_info field (following the docs), but the selection drop-down on the main page is empty.

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [February 20, 2018, 8:15am UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/4 "2018-02-20T08:15:53Z")

</div>

Hi,  
yes it should be `key|label`.  
I will ask the devs about it.

Could you look at [this picture](https://prnt.sc/ih85fa) and tell me if your settings looks like those.

---

<div class="post-metadata">

**Author:** ![r0bbyt](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@r0bbyt](https://forum.pydio.com/u/r0bbyt)\
**Post date:** [February 20, 2018, 5:39pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/5 "2018-02-20T17:39:56Z")

</div>

> [@r0bbyt](#):
>
> key1|Label 1,key2|Label 2,key3|Label 3

Thank you for confirming, this helped me find the bug.

When I create a meta data field id with an underscore, this feature breaks.

e.g., this does not work:

 ![39](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/1X/f53d4998114972d92fb805c2d3b5a7797cf727e2.png)

---

<div class="post-metadata">

**Author:** ![r0bbyt](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@r0bbyt](https://forum.pydio.com/u/r0bbyt)\
**Post date:** [February 20, 2018, 5:41pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/6 "2018-02-20T17:41:18Z")

</div>

Also, using an underscore in the field ID breaks the ability to search. It seems the “\_” is being incorrectly translated to “-” when written into the .ajxp\_meta file.

---

<div class="post-metadata">

**Author:** ![r0bbyt](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@r0bbyt](https://forum.pydio.com/u/r0bbyt)\
**Post date:** [February 20, 2018, 5:44pm UTC](https://forum.pydio.com/t/how-to-format-the-additional-info-field-for-a-metadata-selection/667/7 "2018-02-20T17:44:39Z")

</div>

Here are my steps to reproduce this bug:

Create a new file system based workspace, add Text Metadata feature, add a new field (selection type), set the field ID to be “does\_not\_work”, set Additional Info to “key1|Label 1,key2|Label 2,key3|Label 3”. Then navigate to the workspace, upload a file, edit the metadata, and the selection dropdown will be empty.
