Custom page form showing as $this->form
Hi, I'm trying to build a single custom page to edit a particular record
My view file is as follow
However, it look like this
10 Replies
Is this a
.blade.php
file? Or did you miss the .blade
extension?ur right! silly me but now i have a new error
getCachedFormActions does not exist.
Did you add all required traits to your component?
my class is something like this
did i miss any trait?
ah okay interacts with form action
Just checked:
getCachedFormActions()
is a method of the EditRecords page. Not of the form. That's why it's not availablei added that
the form appeared after i added use InteractsWithFormActions;
But the submit button didn't appear
Please check the form docs: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form
There is no submit button coming with the form
hmm i would have thought this would have added the submit button but it didn't make it appear
WIll look at ur link next
ok it looks like i have another custom page and the submit button appear and i am using what i said above, yet it doesn't appear for this page
Did you specify the action on the page?
ur right I put this in the end and it work. Hope it's the recommended way