© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
1 reply
Glebka

dispatch with alpine is not working

Hello, I have created a custom form field. In this field, I am using Alpine.js to dispatch an event to the field's class, but it is not working. If I move getDropdownArray from the custom form field class to the edit page, it starts working.

Is it possible to keep all the variables and methods in the custom form field class? I would prefer not to use the edit page.

Thanks!
SCR-20250116-lnll.png
SCR-20250116-lnnl.png
SCR-20250116-lpyv.png
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

Textinput masking with alpine not working
FilamentFFilament / ❓┊help
3y ago
"Alpine is not defined"
FilamentFFilament / ❓┊help
6mo ago
Dispatch event not working on action
FilamentFFilament / ❓┊help
3y ago
Widget Table Action with modal form - dispatch refresh event not working
FilamentFFilament / ❓┊help
6mo ago