Hello all,
I'm struggling with the validation of a configuration form for a custom module, I'm trying to keep the code as neat as possible.
I use the helperform class to generate the form, I added the required => true, but a novalidate attribute on the <form> make it useless (apart from displaying a pretty red * before the label).
Is there a trick I have not discovered to have a working validation with the helper class without overriding anything or doing ajax? I found nothing really interesting on the internet...
On a second point, how are you supposed to have a field containing only numbers with the helper class since there's no "number" type field?
Thank you very much for your help.