Hi Team,
AEM Version: 6.5.11
Core component version: 2.17.12
We are building a simple form using Form Container and core components like Form Text, Form Submit etc.
Within Form Container we put Form Text, Form button as Submit.
Problem Statement: Now when we click on submit button, It does not post/call that API url. No call in network tab.
Question: How does it work? Some configuration is needed ?
or this is just dialog support and rest all JS/server side code to be written manually?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @arvind,
This is correct behavior. You will not see direct request to external API. In general this is how the request flow looks like OOTB for Post form data option and external endpoint.
Communication with endpoint happens behind the scene in backend (this is why you are not seeing call to API url in network tab in browser). OOTB form container is not supporting ajax calls - so every time you submit form page will be reloaded.
Please explore/debug, below classes to get full understanding or in case of troubleshooting:
Hi,
Please check
It creates form element that mensa when you click on submit then a post request will be made.
can you check the generated html if that have all the attribute of form?
Hi @arvind,
This is correct behavior. You will not see direct request to external API. In general this is how the request flow looks like OOTB for Post form data option and external endpoint.
Communication with endpoint happens behind the scene in backend (this is why you are not seeing call to API url in network tab in browser). OOTB form container is not supporting ajax calls - so every time you submit form page will be reloaded.
Please explore/debug, below classes to get full understanding or in case of troubleshooting:
Views
Likes
Replies
Views
Likes
Replies