© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
D B Simmons

Hide certain parent form fields on relationship manager.

Hi - I'm still fairly new to Filament and this may be obvious and I'm just not getting it.

I have a relationship manager (Account hasMany Transactions) and I'd like to hide one of the parent form fields .

I tried the following code on my Account resource:

            ->schema([
                Forms\Components\TextInput::make('name'),                Forms\Components\TextInput::make('account_no')
->             hiddenOn(TransactionsRelationManager::class),
            ->schema([
                Forms\Components\TextInput::make('name'),                Forms\Components\TextInput::make('account_no')
->             hiddenOn(TransactionsRelationManager::class),


I was hoping this would hide the
account_no
account_no
field on the relationship page but it does not appear to be working. Have I misunderstood something.

cheers

Dave
Solution
You don't want the user to edit account_no? Probably could simply use
->hiddenOn('edit')
->hiddenOn('edit')


Or perhaps disable it
Getting started - Form Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Refresh parent on relationship manager update
FilamentFFilament / ❓┊help
2y ago
Update Parent Form data after Relationship Manager update
FilamentFFilament / ❓┊help
2y ago
Relationship manager form tabs
FilamentFFilament / ❓┊help
3y ago
getting parent relationship in form
FilamentFFilament / ❓┊help
3y ago