Take a lot of time to find answer about this and nothing found.
I created own custom post type and also make a custom acf in code too, not using the acf admin.
I create a select field.
acf_add_local_field([
'key' => 'mpodds-league',
'label' => 'League Name',
'name' => 'league-name',
'type' => 'select',
'ui' => 1,
'parent' => 'mpodds-group'
]);
Then i succesfully gather the data for this field using AJAX, append options to this field.
Save the post.
When i edit the post, it is empty. But when i see the db, it is saved. Why?