Hi
I have registered an ACF field as a Gutenberg-Block.
add_action('acf/init', 'my_acf_init');
function my_acf_init() {
if( function_exists('acf_register_block_type') ) {
acf_register_block_type(array(
'name' => 'event-date',
'title' => __('Veranstaltungs-Datum'),
'description' => __('Veranstaltungs-Datum'),
'render_template' => 'block-rendering/events_date.php',
'icon' => 'format-image',
'keywords' => array( 'Event' ),
'mode' => 'edit',
'supports' => array('multiple' => false, 'className' => true ),
'post_types' => array('events',),
));
}
}
It is a repeater field with a date picker (and other fields).
Is there a way to automatically transfer the date from the Gutenberg block to another ACF field (not registered as a block)?
Thank you all!
Matthias