adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
744 stars 752 forks source link

[Form] Client and server-side form validation #56

Open stefanseifert opened 7 years ago

stefanseifert commented 7 years ago

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.

gabrielwalt commented 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)

kwin commented 6 years ago

Sling already comes with a validation framework. Hopefully that can be used.

lbineau commented 3 years ago

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.

kashlokesh commented 2 years ago

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