Koda
Koda
FFilament
Created by Koda on 6/20/2024 in #❓┊help
Clear Button in custom form
I try to use a "clear" Button in a custom form
protected function getFormActions(): array
{
return [
Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->submit('create'),

Action::make('clear')
->action(function (Set $set) {
$set('data.name', '',);
$set('name', '');
$this->form->fill();
})
];
}
protected function getFormActions(): array
{
return [
Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->submit('create'),

Action::make('clear')
->action(function (Set $set) {
$set('data.name', '',);
$set('name', '');
$this->form->fill();
})
];
}
The create Button works, but the clear buton does not.
11 replies
FFilament
Created by Koda on 6/17/2024 in #❓┊help
Disable/Hide Checkbox item in CheckboxList
I use CheckboxList / RadioDeck. Let's say I have 5 Values A, B, C, D and E. Gives a solution to uncheck,disable(or hide) C and D if I check A, and reverse if I uncehck A?
10 replies
FFilament
Created by Koda on 6/13/2024 in #❓┊help
TextInput with an autocomplete function
I look for a solution to use a autocomplete in a TextInput field. Select is not a solution because the user must also use own values. Values comes from api. At the moment I don't found any solution
8 replies