christhompsontldr
christhompsontldr
FFilament
Created by christhompsontldr on 8/2/2024 in #❓┊help
Limiting validation rules
Resolved it with
->rules(['max:20', 'required'], fn (Get $get): bool => $get('section') === 'business_action')
->rules(['max:20', 'required'], fn (Get $get): bool => $get('section') === 'business_action')
and
Action::make('business_action')
->action(function (Set $set) {
$set('section', 'business_action');

$this->form->getState();

doSomethingMagical();
}),
Action::make('business_action')
->action(function (Set $set) {
$set('section', 'business_action');

$this->form->getState();

doSomethingMagical();
}),
2 replies
FFilament
Created by christhompsontldr on 7/1/2024 in #❓┊help
Temporary files are never moved
Tacking on to this. The reason we don't use getState() is because it runs the validations for all steps, so if there are required fields on step 4, but step 1 is being completed, it fails because it's trying to tell the use that a field on step 4 (which they haven't gotten to yet) is required.
18 replies
FFilament
Created by christhompsontldr on 7/1/2024 in #❓┊help
Temporary files are never moved
Ah, no, we stopped using it because it did something automagical that was breaking our form. I can't remember what, specifically. Ok, switched from getRawState() to getState() and the file upload and moving all works! Thanks.
18 replies
FFilament
Created by christhompsontldr on 7/1/2024 in #❓┊help
Temporary files are never moved
Standalone livewire component is what I'm using.
18 replies
FFilament
Created by christhompsontldr on 7/1/2024 in #❓┊help
Temporary files are never moved
I'm confused. What is "the default form submit action?" https://filamentphp.com/docs/3.x/forms/layout/wizard#rendering-a-submit-button-on-the-last-step mentions wiring up a Livewire method to handle form submission, which is what I have done.
18 replies
FFilament
Created by christhompsontldr on 7/1/2024 in #❓┊help
Temporary files are never moved
It works as expected in a non-wizard, non-model-created-on-first step setup. How does Filament know create() on my Livewire component is being called?
18 replies
FFilament
Created by christhompsontldr on 7/1/2024 in #❓┊help
Temporary files are never moved
Thanks. I just tried that and it also didn't work.
->directory('installers')
->disk('public')
->directory('installers')
->disk('public')
Even this doesn't work, so I think I need to call some Filament method(s) to process tmp uploads
18 replies
FFilament
Created by christhompsontldr on 6/27/2024 in #❓┊help
Showing a relationship on one infolist, but not on the other.
You're a genius! That worked. Many thanks.
4 replies