© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
50 replies
bwurtz999

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
    }
  ])
//
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dynamic Form Publish Resource Action
FilamentFFilament / ❓┊help
13mo ago
Custom form action help
FilamentFFilament / ❓┊help
3y ago
Adding custom form action button
FilamentFFilament / ❓┊help
3y ago
ActionGroup Action caching custom view
FilamentFFilament / ❓┊help
9mo ago
Next page