Support

Account

Home Forums General Issues Select return value only, Both is set

Helping

Select return value only, Both is set

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Select return value only, Both is set’ is closed to new replies.