© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Garadit

Dynamic Repeater Field

I have dynamic fields in a form. I generate the form by looping through the data like :

foreach (product as product) {
  $formSchema[] = Forms\Components\Section::make($productname);
  return $formSchema;
}
foreach (product as product) {
  $formSchema[] = Forms\Components\Section::make($productname);
  return $formSchema;
}

complete source: https://gist.github.com/TegarAditya/1313a8e2067062ce25f7e0cf729f5a6e
In that schema I want to add a repeater field. So each Product will have its own repeater to add variety. I've tried adding repeaters but it didn't work. Instead, an browser console error appears when I press the add action button. So how to do that properly.

Thank you,
image.png
image.png
Gist
FillReport.php
GitHub Gist: instantly share code, notes, and snippets.
FillReport.php
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 default repeater fields
FilamentFFilament / ❓┊help
16mo ago
dynamic repeater fields names
FilamentFFilament / ❓┊help
17mo ago
Dynamic Repeater
FilamentFFilament / ❓┊help
3y ago
Dynamic Repeater
FilamentFFilament / ❓┊help
3y ago