Fileupload waiting in Wizard

Hey guys, I used Fileupload before, and the form does good job when stopping submission before file finished uploading. I trying it on Wizard, but the 'next' button does do the same. User can click next before upload finished. Anyone else seen same, or hopefully have solution? M
4 Replies
Mohamed Ayaou
Mohamed Ayaou4w ago
I think they leave it on the UI to let the user knows if it's finished, but I think making it required should fix the issue if it not an optional field.
Matilda
MatildaOP4w ago
It is not that. When it is in normal form, the 'Submit' button is disabled\loading when an upload happening. When it is wizard, that doesn't happen. Submit button can still be clicked
Mohamed Ayaou
Mohamed Ayaou3w ago
try adding HasWizard to the CreateResource Page
use App\Filament\Resources\CategoryResource;
use Filament\Resources\Pages\CreateRecord;

class CreateCategory extends CreateRecord
{
use CreateRecord\Concerns\HasWizard;

protected static string $resource = CategoryResource::class;

protected function getSteps(): array
{
return [
// ...
];
}
}
use App\Filament\Resources\CategoryResource;
use Filament\Resources\Pages\CreateRecord;

class CreateCategory extends CreateRecord
{
use CreateRecord\Concerns\HasWizard;

protected static string $resource = CategoryResource::class;

protected function getSteps(): array
{
return [
// ...
];
}
}
not tested btw, just seen it now in the blog
Matilda
MatildaOP3d ago
Hey, thanks for the suggestion. I'm using it on slideover, so no CreateResource page.
Want results from more Discord servers?
Add your server