Submitting AEM Forms Data to REST API via Client-Side Script
Hi Team,
We are exploring the use of AEM Forms and have created a simple form with a few fields—such as First Name and Last Name—along with built-in validations.
Instead of using the default out-of-the-box (OOTB) submit action, we are looking to handle the form submission on the client side using a REST API endpoint. Our goal is to retain AEM’s native form validation functionality but customize the submission logic to call an external API directly from the front end.
Could you please share any best practices or guidance on how to achieve this using clientlibs? Specifically, we’re looking for an example of how to override the submit() method using GuideBridge JS, and the recommended way to load and structure this customization.
Any pointers or sample code would be greatly appreciated.
Thanks,
Krishna
