Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

event.target.submitForm() not working in HTML5


Level 8

I tried to use event.target.submitForm() to submit HTML5 form to tomcat server, and it seems that it has not effect.

However, a regular submit button is submitting the form.

I just wanted to make sure that my findings are correct. I prefer to use Javascript to submit the HTML5 instead of changing the target url of the submit button and invoking the click event.

Appreciate your feedback.


0 Replies