Bardolf#6969
Bardolf#6969
FFilament
Created by Bardolf#6969 on 6/27/2024 in #❓┊help
Custom page with a wizard form
@Ross Bearman isn't that what this line is doing?
protected static ?string $model = User::class;
protected static ?string $model = User::class;
7 replies
FFilament
Created by Bardolf#6969 on 6/27/2024 in #❓┊help
Custom page with a wizard form
This is my custom page as it stands
class RegistrationWizard extends Page implements HasForms
{
use InteractsWithForms;

protected static ?string $model = User::class;

protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.registration-wizard';

public $is_partner_student = false;

public function mount()
{
$this->form->fill();
}

public function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('Degree Information')
->schema([
Radio::make('is_partner_student')
->label('Were you referred by one of our partners?')
->inline()
->boolean()
->live(),
Select::make('partner')
->hidden(fn (Get $get): bool => !$get('is_partner_student'))
->relationship('partner', 'name'),
]),
])->submitAction(new HtmlString(Blade::render('components.submit')))
]);
}
}
class RegistrationWizard extends Page implements HasForms
{
use InteractsWithForms;

protected static ?string $model = User::class;

protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.registration-wizard';

public $is_partner_student = false;

public function mount()
{
$this->form->fill();
}

public function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('Degree Information')
->schema([
Radio::make('is_partner_student')
->label('Were you referred by one of our partners?')
->inline()
->boolean()
->live(),
Select::make('partner')
->hidden(fn (Get $get): bool => !$get('is_partner_student'))
->relationship('partner', 'name'),
]),
])->submitAction(new HtmlString(Blade::render('components.submit')))
]);
}
}
7 replies
FFilament
Created by Bardolf#6969 on 6/26/2024 in #❓┊help
Customizing the Registration Page
ok if anyone else comes accross this issue it was caused by me missing the step of publishing my Livewire assets.
3 replies
FFilament
Created by Bardolf#6969 on 6/24/2024 in #❓┊help
Use value from first select filter to limit results in second select filter
@toeknee excellent thank you very much. That was almost exactly what I needed 🙂 I must say the community here is excellent. I've been working with Splade for the last year or so, and while I love the package there isn't a lot of support.
6 replies