Help me add data to a repeater field using a modal which is a table in a Livewire component.
Hello! I'm working on a school project, and this is my first time using Filament. I managed to create a repeater field, where clicking the 'Add' button opens a modal containing a filament table in a Livewire component (see the image). Now, I want the data to be added to the repeater when I click the 'Select' action in the table. Unfortunately, I don't know how to achieve this. Could anyone please help? (here is the table in livewire code)

5 Replies
You could try registering a listener for the repeater field and dispatching a form event from the Livewire component to update the repeater state, something like this:
https://discord.com/channels/883083792112300104/1313505581436244019/1313523857960865886
But they are on different Livewire components, right? Can you listen to events from other Livewire components? Honestly, I don't understand much about Livewire. I found a guide on the Filament tutorial website, but it's not free
yes, you can
Laravel
Events | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Finally, I got it to work! I had thought that the resource file was also a Livewire component, but it turns out it's not. I added this code to the create page file, and it worked.
Thank you.