rigrinev
rigrinev
FFilament
Created by rigrinev on 3/25/2024 in #❓┊help
Problem with a Filament Forms Livewire Component with a SpatieMediaLibraryFileUpload field
I've spent about 4 hours trying to find the Filament solution for this problem. I will use just regular Livewire File upload functionality for now instead. Hopefully the Filament team will provide clear guidance for this in future. Thank you.
10 replies
FFilament
Created by rigrinev on 3/25/2024 in #❓┊help
Problem with a Filament Forms Livewire Component with a SpatieMediaLibraryFileUpload field
Anyway, @toeknee, I've checked your Form Loading Indicator trick. Thank you for your replies.
10 replies
FFilament
Created by rigrinev on 3/25/2024 in #❓┊help
Problem with a Filament Forms Livewire Component with a SpatieMediaLibraryFileUpload field
I've checked the links you provided. Thank you so much for your research. Just to make sure. I don't have any problems make the Submit button disabled if I have form like this:
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')->required()->live(),
Textarea::make('message')->rows(3)->required()
])
->statePath('data');
}
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')->required()->live(),
Textarea::make('message')->rows(3)->required()
])
->statePath('data');
}
the wire:loading.attr="disabled" work perfect in this case. But for the situation where I need to disable the Submit button when a user select a file and it is loading before clicking the submit button . Will your solution with specifying wire:target work? What would be the target for the field like SpatieMediaLibraryFileUpload::make('attachments'), should it be wire:target="attachments" or wire:target="data.attachments"? Thank you
10 replies
FFilament
Created by rigrinev on 3/25/2024 in #❓┊help
Problem with a Filament Forms Livewire Component with a SpatieMediaLibraryFileUpload field
No description
10 replies
FFilament
Created by rigrinev on 3/25/2024 in #❓┊help
Problem with a Filament Forms Livewire Component with a SpatieMediaLibraryFileUpload field
No description
10 replies
FFilament
Created by rigrinev on 3/25/2024 in #❓┊help
Problem with a Filament Forms Livewire Component with a SpatieMediaLibraryFileUpload field
No description
10 replies