G3z
G3z
FFilament
Created by G3z on 8/21/2023 in #❓┊help
open new tab from Bulkaction
Is it possible to open a route in a new tab from a bulkaction ? I would like to create an action that prints warehouse labels for all the selected entities my idea is to select entities -> run the action -> open a controller in a new tab with the ids -> render a printable view Is there a better way?
9 replies
FFilament
Created by G3z on 5/11/2023 in #❓┊help
Action on Repeater
Is it possible to attach an Action to a repeater element ? I would like to add a button to create a new entity based on the action, modify the current entity and redirect to the edit page of the new one (on a different resource)
2 replies
FFilament
Created by G3z on 4/19/2023 in #❓┊help
Is it possible to add conditional confirmation on the save action ?
I tried the following in my EditPage subclass to ask for confirmation on a set condition but the callback inside requiresConfirmation is never called
protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament::resources/pages/edit-record.form.actions.save.label'))
->submit('save')
->keyBindings(['mod+s'])
->requiresConfirmation(function ($data) {
if (false == empty($data['agreed_price'])) {
if ($data['agreed_price'] != $data['sell_total_eur_gross']) {
return true;
}
}

return false;
});
}
protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament::resources/pages/edit-record.form.actions.save.label'))
->submit('save')
->keyBindings(['mod+s'])
->requiresConfirmation(function ($data) {
if (false == empty($data['agreed_price'])) {
if ($data['agreed_price'] != $data['sell_total_eur_gross']) {
return true;
}
}

return false;
});
}
2 replies
FFilament
Created by G3z on 3/30/2023 in #❓┊help
Defer table filters
5 replies