I was looking for a validation library/code, then I found this nice post (Form Validation with Anvil) by @meredydd. But there were some challenges that affect the event handler for my own code as @stefano.menci pointed that out in the same post. So, I came up with a new library/code, which is based on very simple code (I don’t have @meredydd abilities), if you can improve it please do so and share it here!
- You can use it with any regular component (you may want to customize it to work with your custom component), see the app: https://anvil.works/build#clone:TRYU2OVFKIJGORPG=HHLITDAEVRNTEFIMLQ4XPKZK
Please let me know if you have any comments or questions.