F
Filamentβ€’2y ago
slamx_

Setup complete Form to reactive()

Is it possible to set all input fields to reactive? Didn't find a solution in the docs... Single example: Forms\Components\Checkbox::make('conditions')->inline()->reactive()
4 Replies
LeandroFerreira
LeandroFerreiraβ€’2y ago
You can do it πŸ€·β€β™‚οΈ
Checkbox::configureUsing(function (Checkbox $checkbox): void {
$checkbox->reactive();
});
Checkbox::configureUsing(function (Checkbox $checkbox): void {
$checkbox->reactive();
});
https://filamentphp.com/docs/2.x/forms/fields#global-settings
Filament
Fields - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
slamx_
slamx_OPβ€’2y ago
But only for specific types.. not the whole form I looking for a solution to setup all input field (TextInput, Checkbox etc.) to reactive with a single command or function
toeknee
toekneeβ€’2y ago
That doesn't make any sense? You have to define the fields so why not just refine the reactive state at the same time?
slamx_
slamx_OPβ€’2y ago
I want to write a complex form with multiple conditions where hide elements on change Anyway if its not possible - I would close this topic πŸ™‚
Want results from more Discord servers?
Add your server