settings.xml text value to enum value

Hello. Is there a way to show values in enum type grabbed from text fields?

Code:
<?xml version="1.0" encoding="utf-8"?>
<settings>
    <category label="32000">
        <setting label="32001" type="text" id="name1" default="value1" />
        <setting label="32003" type="text" id="name2" default="value2" />
    </category>
    <category label="32014">
        <setting label="32022" type="enum" id="names" values="[value name1]|[value name2]" />
    </category>
</settings>