F
Filamentβ€’16mo 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β€’16mo ago
What table? RelationManagers?
JamesTechDude
JamesTechDudeOPβ€’16mo 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β€’16mo ago
In v3 it's infolist. If you are on v2 then you can't
josef
josefβ€’16mo 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
JamesTechDudeOPβ€’16mo 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 πŸ™‚
Want results from more Discord servers?
Add your server