F
Filament4w ago
Liam

Move position of Relationship Manager

Hi everyone, I’m trying to move the relationship manager field to a different location in my form (screenshot below). I attempted creating a custom view, but it seems more complicated than I expected. Has anyone successfully done this before? If you could share an example, I’d really appreciate it. Thanks!
No description
Solution:
Leandro Ferreira (@leandrocfe) on X
💡Filament Tip: You can insert Livewire components into a form, which allows us to use this approach to insert Relation Managers into Form Tabs. In this example, we added Categories and Comments (both Relation Managers) into Form Tabs 👇
From An unknown user
X
Jump to solution
4 Replies
Solution
LeandroFerreira
Leandro Ferreira (@leandrocfe) on X
💡Filament Tip: You can insert Livewire components into a form, which allows us to use this approach to insert Relation Managers into Form Tabs. In this example, we added Categories and Comments (both Relation Managers) into Form Tabs 👇
From An unknown user
X
Liam
LiamOP4w ago
While it renders correctly, the 'Save Changes' button on the EditForm unfortunately no longer functions. :/
No description
LeandroFerreira
try to add this to the EditPage
protected function getSaveFormAction(): Action
{
return parent::getSaveFormAction()
->submit(null)
->action('save');
}
protected function getSaveFormAction(): Action
{
return parent::getSaveFormAction()
->submit(null)
->action('save');
}
Liam
LiamOP4w ago
Works! Thanks a lot 🙂

Did you find this page helpful?