Form method executing before mount method?
i have this class in an EditFilament component:
21 Replies
and my from method:
but the form is never filled
i tested with;
nothing happend
any help will be apreciated! 🥲
if you are using attributes, you shouldn't use
->statePath('data')
i tested too.... nothing...
the strange thing is when i see the logger its shows this:
like the form methos is executing first than mount
default only works in the create page. But I think fill form should work..
are you using the form outside the panel, right?
outside the panel?
I mean, using only the Form builder, not the Panel builder
yeah the form builder
if you are using a Resource, why are you doing this in the EditPage
public function form(Form $form): Form{
.. ?
Shoudn't you use the Resource?cause i have a view with tabs and in every tab i have diferent tables and forms
as long as i know the EditRecordFile is a livewire component
i may be wrong
there is no reason to edit the edit page for me.. you could use form tabs and render custom LW components..
u mean that i make another livewire component to add the form like i did with the others livewire components?
may be u are rigth but when i did the createRecordFile it worked fine.... so i didnt think of it
I mean, this in your resource..
nop that is in my EditRecordFile
i dont have any form in my RecordFileResource
probably because you remove it 🤷♂️
yeah i deleted...
cause i need like X forms
well a step foward....
i did the livewire components and now i can show the expediente information but....
only like this
my form method now look like this
still i cant show the data
I SOLVED IT!!
here is the answer!
in a Livewire Component