Skip to content

Select 'return_format' only returns label #125

@astray-heavy-arms

Description

@astray-heavy-arms

In a similar vein to this: -

#81

I create a select:-

$field_settings = [

     'choices' => [
      'value' => 'label', 
    ],
    'return_format' => 'value',
];

->addSelect('select_field', $field_settings);

Apologies for sudo code but the result I expect to see is value but what's returned is label and even when set to both it still returns label.

I understand there is this option to add choices.

->addChoices(['red' => 'Red'],

Feel free to guide me in the proper way to do this cause I'm a bit lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions