Hi,
I’m using the function “registerCustomField” for registering my field, and I need to add a repeater field, but I can’t add the “subfields” value.
array (
'key' => 'field_dkflsdjflkdjsflkj',
'label' => __('Dettagli tecnici'),
'name' => 'technical_details',
'type' => 'repeater',
'instructions' => __('Inserisci i dettagli tecnici'),
'default_value' => '',
'placeholder' => '',
'repeater_fields' => array (
array (
'key' => 'field_dlkfjdlskjflks',
'label' => __('Gallery'),
'name' => 'gallery',
'type' => 'gallery',
'instructions' => __('Carica le immagini relative al prodotto'),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
)
),
'append' => '',
'maxlength' => '',
),
I try with many key for the array of sub field, but it doesn’t work.
There is a documentation for this function?
Thanks.
Paolo.