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
해결되었습니다! 솔루션으로 이동.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
Hi @krishna_sai ,
If you find the answer helpful, please mark as correct reply. Thanks
조회 수
답글
좋아요 수
Hi @krishna_sai ,
Yes you can create a custom clientlibs for your form and write a code to declare custom methods and author that in your submit button action.
Let me give it a try and reach out to you in case of any blockers.
Thanks,
Krishna
조회 수
답글
좋아요 수
Hi @krishna_sai ,
If you find the answer helpful, please mark as correct reply. Thanks
조회 수
답글
좋아요 수
조회 수
Likes
답글