mendozal
mendozal
FFilament
Created by mendozal on 8/30/2024 in #❓┊help
How to prefill resource field and run some calculations
I just calculated those values in the calling action and passed them in this array
->action(fn($record) =>redirect()
->route('filament.admin.resources.credit-note.create',
['invoice_id' => $record->id,
'value_2' => 'xxx',
'value_3' => 'yyy' ])
),
->action(fn($record) =>redirect()
->route('filament.admin.resources.credit-note.create',
['invoice_id' => $record->id,
'value_2' => 'xxx',
'value_3' => 'yyy' ])
),
And loaded them using default() in the receiving resource.
3 replies