This project demonstrates Filament's Wizard form functionality with the ability to display contextual information on each step based on selections made in previous steps.
First, the HasWizard
trait must be used to add a wizard form on the Create page.
use Filament\Resources\Pages\CreateRecord\Concerns\HasWizard;use Filament\Resources\Pages\CreateRecord; class CreateTask extends CreateRecord{ use HasWizard; protected static string $resource = TaskResource::class;}
Steps for the wizard are added in the protected getSteps()
method on the Create page class.