mithyy
Run JavaScript code after the page loads
Hi,
I'm using the latest version of Filament. In my project, I need to run a JavaScript code (variable) in Blade when a button is clicked. I will use it as simply as in the codes below. How can I make it work?
After clicking the button, the JavaScript code appears within the HTML code, but it doesn’t run because it’s loaded afterward.
6 replies
Performing action on resource view event
Hello, I have a ContactResource. It contains data from the contact form and is saved as is_read=false by default. I want to make is_read=true when this resource is opened with view in the admin panel. How can I do this? In the documentation https://filamentphp.com/docs/3.x/panels/resources/viewing-records I couldn't find anything related to what I want to do on this page, or I didn't understand it.
6 replies