No property found for validation

Hi I'm dynamically building a wizard, it shows perfectly fine, but when I hit 'Next' I get this error:
No property found for validation: [placeholder_1_grp_1]
No property found for validation: [placeholder_1_grp_1]
What did I miss ?
9 Replies
LeandroFerreira
can you share the code?
rabol
rabolOP2y ago
sure...
rabol
rabolOP2y ago
rabol
rabolOP2y ago
rabol
rabolOP2y ago
MyFilamentWizardStep and MyFilamentWizard is custom class, that only set the view, nothing else
LeandroFerreira
custom page, right? Did you add this?
public function mount(): void
{
$this->form->fill();
}
public function mount(): void
{
$this->form->fill();
}
Dennis Koch
Dennis Koch2y ago
Do you have the properties on the class? Probaly not. You should prefix them also or use statePath('data') to write them to a data property.
rabol
rabolOP2y ago
form builder missing $this->form->fill(); was the issue, thanks
LeandroFerreira
You should also register the properties as Dennis said or use https://filamentphp.com/docs/2.x/forms/getting-started#scoping-form-data-to-an-array-property
Filament
Getting started - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
Want results from more Discord servers?
Add your server