SirFat
Validation/Pre-Action on Submit within a Wizard
To clarify my submitAction use - I use a custom blade to render the button per the guide. I attempted to perform validation in there but I couldn’t use Set because at that point in the flow the form element has not yet been initialised.
Perhaps that’s because the blade button side-steps all validation hooks?
3 replies
Validation/Pre-Action on Submit within a Wizard
If there isn't anything out the box, I wonder if looking into the listener-registration or creating a setSubmitAction that accepts a Closure may be of value, or whether that's against the spirit of the way it's written.
I can see I can pass '$action' into submitAction() - but I cannot ascertain where '$action' would be constructed to have it passed as an argument, which is possibly also an oversight/misunderstanding on my part
3 replies
Form Design/Implementation Guidance Question
Is there a trick within the blade/custom field to ensure the field is accessible via Get? I was able to use child components to reuse Filament fields versus build my own within the Custom field, I can see 'state' and 'old' state in what his 'afterStateUpdated', but the subsequent live check returns null on the $get attempt.
87 replies