Trying to open createOptionAction
I'm trying to open a createOptionAction from a livewire component that's in a modal called from a viewField, I already tried to use
{{ $this->modal }}
inside the livewire component's blade but it only added a 1 the the modal. Not sure how to proceed since {{ $this->modal }}
worked on diferent ocassions but not on this one.
Calling of the livewire component in modal
The component where I'm trying to open the createOptionAction
1 Reply
You need to define a relationship on the Select: https://filamentphp.com/docs/3.x/forms/fields/select#creating-a-new-option-in-a-modal
Also make sure you have set up the form's model. Otherwise, Filament doesn't know which model to use to retrieve the relationship from.