Jordy
Jordy
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
Thanks alot @LeandroFerreira !
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
nvm im stupid, hadnt defined said action yet
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
it does close the modal but doesnt save the data to db.. weird
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
its complicated 😂 its a Filament\Forms\Components\Actions\Action inside of a the Form of a \Filament\Tables\Actions\Action
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
tried the dirty aproach straight from v2 but this doesnt work either (sadge)
$record->update(
$this->form->getState()
);

$this->closeActionModal();
$record->update(
$this->form->getState()
);

$this->closeActionModal();
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
throws call() doesnt exists on the page instance
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
no worries, already fixed by moving the actions into the form so they update following ->live() https://discord.com/channels/883083792112300104/1333748055585067131/1333768518864474134
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
->form([
...
Actions::make([
FormAction::make('start')
->hidden(fn(Get $get) => $get('amount_billed') == null || $get('presented_transport') == null)
->action(function (Order $record, Set $set, $livewire) {
$set('delivery_date_start', now()->format('Y-m-d H:i:s'));
//figure out how to call the submit button

}),
->form([
...
Actions::make([
FormAction::make('start')
->hidden(fn(Get $get) => $get('amount_billed') == null || $get('presented_transport') == null)
->action(function (Order $record, Set $set, $livewire) {
$set('delivery_date_start', now()->format('Y-m-d H:i:s'));
//figure out how to call the submit button

}),
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
:kekw:
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
now I need to figure out how to call the submit button
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
time to go the the casino since we're just gambling :P
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
but I'm just guessing here
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
livewire emit I suppose?
The field that you depend on (the status in this case) needs to be set to live(), which tells the form to reload the schema each time it gets changed.
and I guess ->live() just emits specifically the the components inside the schema array
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
well it somewhat makes sense.. I just assumed the buttons/actions are inside the form which they apparently are not
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
Thanks for the effort :)
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
which will resolve the issue since it would be reloaded by the ->live() method
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
https://filamentphp.com/docs/3.x/forms/actions I've found this, I'm going to move the footer actions into the form
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
I'd assume not
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
I'm unsure if that would be reactive to the live input though
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
how do I access input values from here?
53 replies