Custom Page with Filament form using Wizard to create a quiz and calculate the quiz result.
Get the Source Code:
Only This Example
$9
One-time payment
Full source code for Quiz/Questionnaire with Wizard Steps
Downloadable ZIP file with the source code
Lifetime access to this example
Sign in with GitHub to buy
Sign in first, then complete your $9 checkout.
Best value — all 177 examples
View membership plans
FilamentExamples Membership
$99
/year
or
$199
lifetime
Access to code of all 177 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
30-day money-back guarantee
How it works
The whole logic and functionality here live inside a custom Page in Filament called Questionnaire:
- It retrieves the questions from the database
- It created a Filament Form dynamically based on the questions
- It validates the form and calculates the result
- Simple check in the view for the form and result on the same page
Let's take a look at the Page:
app/Filament/Pages/Questionnaire.php
use App\Models\Question;use Filament\Forms\Components\Radio;use Filament\Forms\Components\Wizard;use Filament\Forms\Form;use Filament\Pages\Page;use Illuminate\Support\Facades\Blade;use Illuminate\Support\HtmlString; class Questionnaire extends Page{ protected static ?string $navigationIcon = 'heroicon-o-document-text'; // ...
The FULL tutorial is available after the purchase: in the Readme file of the official
repository you would get invited to.