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 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') Or perhaps disable it...
Jump to solution
2 Replies
Solution
dissto
dissto2mo ago
You don't want the user to edit account_no? Probably could simply use ->hiddenOn('edit') Or perhaps disable it
D B Simmons
D B Simmons2mo ago
Thanks @dissto .
Want results from more Discord servers?
Add your server
More Posts