Matrix Version: 5.4.3.1
The key and value data for a metadata select field seem to render in reverse on the frontend, when compared to a standard HTML select field (or even the select fields used on a custom form asset).
So, if you enter an option key as “KEY” and an option value as “VALUE”, the option value renders as the option text in the menu, and the key renders as the value
attribute of that option
.
<select>
<option value="KEY">VALUE</option>
</select>
But what should happen is that you select the KEY text to send a VALUE to a server in a form etc. Like so:
<select>
<option value="VALUE">KEY</option>
</select>
Is this a known bug or am I doing something wrong here? The above behaviour certainly differs from a standard HTML select field, and is independent of the Frontend Part metadata field setting.