F
Filamentβ€’11mo ago
JamesTechDude

How to remove Form from View page

I made a custom page using:
php artisan make:filament-page ViewUser --resource=UserResource --type=ViewRecord
php artisan make:filament-page ViewUser --resource=UserResource --type=ViewRecord
How do I remove the form from this view page though? Or is that not possible πŸ™‚
5 Replies
ZedoX
ZedoXβ€’11mo ago
What table? RelationManagers?
JamesTechDude
JamesTechDudeβ€’11mo ago
@ZedoX Sorry, the view form (that lets you view the current user's information) Typically it's an edit form, but when you make a view, it's the same edit form - just disabled I meant to say Form, not Table - my fault
krekas
krekasβ€’11mo ago
In v3 it's infolist. If you are on v2 then you can't
josef
josefβ€’11mo ago
@JamesAutoDude you can just remove the form() method and use an infolist instead, if you want to just show the data, but not have a form. Otherwise, it might help to know what you want to achieve exactly. Rather than showing a disabled form you want to ... ?
JamesTechDude
JamesTechDudeβ€’11mo ago
@josef Thank you, I'll check into infolist I have a relationship manager and I'm trying to show just the relationship manager on the edit or view page, but someone gave me a tabbed idea that seems to work better that I can get rid of the view page and just keep it the edit page - so I may just do that πŸ™‚