I’m using the filter bricks/elements/form/controls
for a custom form action settings panel which includes a repeater control. I’d like one of the fields in the repeater to be a select for a form field, however the auto-population of options does not appear to work:
$controls['customFieldsRepeater'] = [
'group' => 'my-custom-action',
'label' => esc_html__( 'Custom Fields', 'bricks' ),
'type' => 'repeater',
'default' => [
[
'title' => 'Custom Field',
],
],
'fields' => [
'field' => [
'label' => esc_html__( 'Field', 'bricks' ),
'type' => 'text',
],
'value' => [
'label' => esc_html__( 'Value', 'bricks' ),
'type' => 'select',
'multiple' => false,
'options' => [],
'map_fields' => true, // does not work
],
],
];
It works when not using a repeater. Is this intended behaviour?