Calling a Method Inside a Field Class in Filament v3 from JS
I've implemented a JavaScript function to add a new item to an array of coordinates. When clicking the button, I'm calling @this.call('add'), but it doesn't seem to find the add method in the Form class, even though the method exists inside the Field. How can I use the add method that is defined within the Field class?
1 Reply
You can't call methods on fields from JS. They aren't Livewire components.