Fill custom edit page form with data
I have created a filament page, selected EditPage when filament asked me what kind of page is this going to be and now I am trying to fill the form with $record data, but I dont understand how to do that. Can someone help? This is a custom edit page for a relationManager, not a resource itself, so in a $resource and a mount function I have a different models.
Solution:Jump to solution
You can access your form using the
mount()
method. From there, you should be able to fill the fields with your record in this way:
```
public function mount(int | string $record): void
{...2 Replies
Solution
You can access your form using the
mount()
method. From there, you should be able to fill the fields with your record in this way:
How do I make that custom edit page appear in the navigation menu?
I mean, if in the class setup I set:
I can see the page right at the navigation menu.
However, if I try, just like in this example, which is what I really want to do (a custom page to edit a record):
the link to the page in the navigation, disappears.
So how does this work? How do I set the link to that custom edit page?
Could you please shed some light on this?