Open stefanseifert opened 7 years ago
To provide a good validation framework is on our roadmap, as well as removing the dependency on the foundation components. (CQ-105301)
Sling already comes with a validation framework. Hopefully that can be used.
Any news on this topic? It has been created for 4 years already and I believe Form validation is quite common feature for any website. For now only "required" is supported and it relies on HTML5 validation which is rather limitate in terms of UX. Do you plan to have AEM using a custom javascript library or is it safe to start using our own?
Best regards.
Any update on adding additional constraints to form options like checkbox ? Would be great if we can also have an ability to add additional custom regex validations to names, emails.
-Lokesh
the core form components currently are doing validation only on the client side (e.g. checking "required" for a textfield). there is no server-side validation at all.
the forms helper logic of the AEM foundation components provide some support for server-side validation, it should be used to check the constraints the user can activate via the edit dialogs of the form components.