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
5 Replies
try
$getGetCallback('details')
@LeandroFerreira not working :
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
ohh sorry
$getGetCallback()('details')
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
could you share the whole code on gist please?