Running PHP Function From Frontend Click - Component
I am losing braincells trying to figure this out but how do I call a one of my custom form component's php functions from a click event on my frontend? In V3 I used
dispatchFormEvent
but this doesn't seem to exist anymore.3 Replies
Need to call this funciton - https://github.com/discoverydesign/filament-gaze/blob/bug/fix-take-control/src/Forms/Components/GazeBanner.php#L134
From this click event - https://github.com/discoverydesign/filament-gaze/blob/bug/fix-take-control/resources/views/forms/components/gaze-banner.blade.php#L41
But doesn't work in V4 anymore
Please help 🙁
Something like this. Check the Select field source code to see a more complete example.
Thanks, this worked ❤️