I have a select field with multiple options that doesn't save. I don't get any errors but the values are not saved in the post. This happens with a select or select advanced field. I have enabled the save field value option but this makes no difference. This is the code that my field has generated:
[
'name' => __( 'Location', 'your-text-domain' ),
'id' => $prefix . 'location',
'type' => 'select_advanced',
'options' => [
'Hall' => __( 'Hall', 'your-text-domain' ),
'Sports Hall' => __( 'Sports Hall', 'your-text-domain' ),
'Chapel' => __( 'Chapel', 'your-text-domain' ),
'Dining Room' => __( 'Dining Room', 'your-text-domain' ),
'Drama Studio' => __( 'Drama Studio', 'your-text-domain' ),
'Junior School' => __( 'Junior School', 'your-text-domain' ),
'Other' => __( 'Other', 'your-text-domain' ),
],
'multiple' => true,
'select_all_none' => true,
'required' => true,
],