Dynamic form creation for custom action

Hello - is it possible to create a form with a dynamic number of fields if I am using a custom action on an edit page?

For example:

//
Actions\Action::make('customDynamicForm)
  ->form([
    foreach($data as $section) {
      // ... generate form
    }
  ])


I've tried using a repeater but I don't want the user selecting the number of sections. I want to control the number sections and pre-populate them with information
Was this page helpful?