ACF radio buttons in form

Hi,

I have an ACF repeater field inside a custom post type. With this repeater field, I can add multiple dates. Now, I want to create a form where users can select one of those dates.

This is for a course page. The course is set up as a custom post type, and inside this custom post, I have a repeater field where I can define the available dates. In the course registration form, I want to display these dates as radio buttons or a dropdown.

When I try to do this using the ACF field inside the form block, all dates are grouped into a single radio button instead of separate options, so this approach doesn’t work.

I’ve created custom code that correctly converts the dates into separate radio buttons. However, from what I can see, I cannot insert a shortcode inside the form.

Does anyone know a solution for this?

For now the sollution is to not use the form element, but add a custom code block with an own form function. But it would be nice if this works inside the bricks builder:)