F
Filament16mo ago
esorone

6 records and step wizard

Hey All, I building a survey wizard and I have just 6 questions. But based on these questions I have some follow up questions. All the followup are working but I would like to have questions one in step one and question two in step two. Im using the form class but cannot achieve this. Know I doing this
Forms\Components\Select::make('main_question_id')
->label('vraag 1.1')
->options(MainQuestion::all()->pluck('id', 'id')->toArray())
->reactive()
->afterStateUpdated(fn(callable $set) => $set('sub_question_id', null)) ,
Forms\Components\Select::make('main_question_id')
->label('vraag 1.1')
->options(MainQuestion::all()->pluck('id', 'id')->toArray())
->reactive()
->afterStateUpdated(fn(callable $set) => $set('sub_question_id', null)) ,
But instead of a pull down of each question with the possibility that they forget a question, I would like to use the step wizard. So step on ID =1 and Step 2 ID-2.. Hope someone is able to help me with this. Or point me to a better approach
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server