SirFat
How would I go about having a text field use a loading indicator
Yeah it kind of worked, as usual about five minutes after I finally succumbed to contacting the brains trust. I did see that link before. Handy because it means I’ll delve more into live wire tricks. The end time for the animation seems very quick, not in line with the sleep I had in afterStateUpdated. I’ll tinker some more because a clean generic solution to this I think would be useful in many of my applications - cheers!
4 replies
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