FilamentF
Filament2y ago
Emaz

Custom blade view during create

Is it possible to display a blade view with record data during create? I've seen the docs for custom layouts
https://filamentphp.com/docs/3.x/forms/layout/custom#view-components
But using getRecord it's obviously null during create - might be useful for edit.

My use case is a complex form to create an invoice. I'd like to use 1/2 of the view for the form fields and 1/2 using the View component to show a blade layout as you go. Is this possible?

I've seen https://github.com/andrewdwallo/erpsaas which gives SOME clues but it's pretty hard to understand.
GitHub
A Laravel and Filament-powered accounting platform, crafting a modern and automated solution for financial management. - andrewdwallo/erpsaas
Solution
@Emaz it's all in the docs - you just define the ViewField with your Blade inside: https://filamentphp.com/docs/3.x/forms/fields/custom#view-fields
Was this page helpful?