F
Filamentβ€’17mo ago
Oddman

Field dependency in Filament v3 seems to be busted

I noticed that when I try and do the following:
TextColumn::make('published_at')->dateTime()->hidden(fn(Get $get) => $get('published')),
TextColumn::make('published_at')->dateTime()->hidden(fn(Get $get) => $get('published')),
The system borks at "Get" - it's trying to initialise that before it's actually avialable, resulting in the following error: Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
Solution:
IT's fine, I figured it out - was changing the textcolumn, not text input πŸ˜›
Jump to solution
2 Replies
Dennis Koch
Dennis Kochβ€’17mo ago
Please post some more code
Solution
Oddman
Oddmanβ€’17mo ago
IT's fine, I figured it out - was changing the textcolumn, not text input πŸ˜›
Want results from more Discord servers?
Add your server