Builder schema not being reactive
Hi, I have this:
And:
In the Builder Block::make('data'), the Log is empty, but in the Select::make('other'), the Log is Option1. Why?
How could I get the info from the select inside the Builder schema? Thanks
Forms\Components\Builder::make('requirements')
->blocks([
Forms\Components\Builder\Block::make('data')
->schema(function (callable $get) {
$type = $get('type');
Log::info($get('type'));
})
->reactive()And:
Forms\Components\Section::make()
->schema([
Forms\Components\Select::make('other')
->options(function (callable $get) {
Log::info($get('type'));
return [$get('type')];
})
->reactive(),
Forms\Components\Select::make('type')
->options(['Option1' => 'Option1'])
->reactive()
->required(),In the Builder Block::make('data'), the Log is empty, but in the Select::make('other'), the Log is Option1. Why?
How could I get the info from the select inside the Builder schema? Thanks