© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
18 replies
Masea

how can i put script on a widget blade view?

i am going to have a widget that will run a script on its view. but no matter where I put the script it didnt work. here's my code:

<x-filament-widgets::widget>
<x-filament::section>
</x-filament::section>

<script>
alert("hey")
</script>
</x-filament-widgets::widget>

any idea why? thanks. this is a custom widget btw and i am using it on a custom page
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

how use viewData value at ViewField in the blade view
FilamentFFilament / ❓┊help
3y ago
Error with widget in a blade view
FilamentFFilament / ❓┊help
3y ago
Action inside Resource ViewAction blade view
FilamentFFilament / ❓┊help
3y ago
How can I customise the view of a ViewAction?
FilamentFFilament / ❓┊help
3y ago