BulkAction::make('MyAction')
->mountUsing( function(Forms\ComponentContainer $form, Table $table){
$form->fill([
'myHiddenField' => $table->getFilter('MyFilterName')->getState()['value'],
]);
})
->form([
Forms\Components\Hidden::make('myHiddenField'),
Forms\Components\Select::make('anotherField')
->options(function (Get $get) {
// we can use $get('myHiddenField') here
})
])
...
BulkAction::make('MyAction')
->mountUsing( function(Forms\ComponentContainer $form, Table $table){
$form->fill([
'myHiddenField' => $table->getFilter('MyFilterName')->getState()['value'],
]);
})
->form([
Forms\Components\Hidden::make('myHiddenField'),
Forms\Components\Select::make('anotherField')
->options(function (Get $get) {
// we can use $get('myHiddenField') here
})
])
...