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.