I am having a form, and a select type field which is rendering good and have correct options but when I am editing an existing record it won't point to the corresponding value.
CODE
$fieldset->addField(
'segment',
'select',
[
'name' => 'segment',
'label' => __('Segment'),
'id' => 'segment',
'title' => __('Segment'),
'required' => true,
'value' => $model->getSegmentCode(),
'values' => $options
],
'sender_email'
);
What I always got is select with options.
I can't screenshot when its open :D.