Hello, i have a field type “Select” – https://i.imgur.com/xKP08tE.png
But they return value only, not array.
Any idea?
I concur. I am populating a select box with a generated id for the value and a text value for the label using a prepare_field filter. When I dump the field choices after the filter it is correct as is the HTML that is generated. However when I have the select field return both, it returns the id in both value and label. Even more, when I have the select field return the label, I get the value.
Scratch that – I figured out what I was doing wrong. I should have been using the load_field filter not prepare_field. It works now.