Form Wizard and Dynamic Fill?

Radio::make('moveOrMerge')
    ->options([
        'move' => 'Move',
        'merge' => 'Merge',
    ])
    ->required(),
Select::make('merge_target')
    ->options(function () use ($table) {
        if (isset($this->target_tenant_options)) {
            return $this->target_tenant_options[$table] ?? [];
        }

        return [];
    })
    ->required(function (Get $get) {
        if ($get('moveOrMerge') === 'merge') {
            return true;
        }

        return false;
    }),
why does something simple like this on a required() logic create Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization? I even get this error when I am on step 1 of the wizard and this field is in step 2
Was this page helpful?