insert default value into form with custom action in create
Hi how do i set a default value with an action button into the form in the resource file, instead of creating a new form
8 Replies
Do you want to fill in an input when user clicks action?
yes
Use a closure and use $set, that should work
but it says
Target [Closure] is not instantiable.
this code is in the 'CreateStatisticReportResource' not in the 'StatisticReportResource'
this form is in the StatisticReportResource
?
lol didnt know it was that simple thx alot
I'm thrilled to see that Batman is using Filament! It's great to see superheroes embracing new technology. LOL
Couldn't agree more! To the bat cave