F
Filament4w ago
Nate

How to inject form data into a custom view

In this example I need to send the value of the "details" field through ->viewData([ 'details' => '' ]) I tried $get() but it didn't work
No description
5 Replies
LeandroFerreira
try $getGetCallback('details')
Nate
NateOP4w ago
@LeandroFerreira not working : Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
LeandroFerreira
ohh sorry $getGetCallback()('details')
Nate
NateOP4w ago
I get the same mistake, I had to do this, this way if I can access the initialized form data with $get The only problem is that I have to press the button to view the data
No description
LeandroFerreira
could you share the whole code on gist please?
Want results from more Discord servers?
Add your server