Output the value of a dropdown?

Hi guys,

I would like to output the value of a dropdown.

I have a custom content field for a dropdown. The options list is created from a .json file.
The key must always stay the same but the values can change.
I.e. my attempt to solve it with arrayFlip fail as soon as a value is
is changed and therefore the dropdown in the backend resets.

By default only the key is output as string.
Is it possible to output the key and the value at all?
Is there another way to solve this?
Any ideas?


1 Like