I am trying to do a custom action type for my component form, I have been following the tutorial based on the documents : https://docs.adobe.com/docs/en/aem/6-1/develop/components/developing-forms.html but to no luck every time I submit the form the post.POST.jsp is not being called. I tried to use the sling servlet based on the question i found on Stackoverflow: http://stackoverflow.com/questions/22344470/how-do-i-configure-built-in-form-component-in-cq-5 but still no luck happened. Is there something I might missed out?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Check the OOB implementation on the same here /libs/foundation/components/form/actions
and hope that helps you to understand and verify your implementation along the same lines
Views
Replies
Total Likes
See this community article - it works:
https://helpx.adobe.com/experience-manager/using/posting-aem-6-form-data.html
Hope this helps.
Views
Replies
Total Likes
Views
Replies
Total Likes
For Forms (not adpative forms) - try using AJAX to post data to a custom sling servlet - that way - you are getting the form data to backend Java.
Views
Replies
Total Likes
Check the OOB implementation on the same here /libs/foundation/components/form/actions
and hope that helps you to understand and verify your implementation along the same lines
Views
Replies
Total Likes
Thank you for the response, I checked the OOB implementation from libs/foundation/components/form/actions and I even tried to copy and paste the post.POST.jsp on my custom form action node, but the post.POST.jsp is not being called during the submission of the form component.
Views
Replies
Total Likes
harold malabanan wrote...
Thank you for the response, I checked the OOB implementation from libs/foundation/components/form/actions and I even tried to copy and paste the post.POST.jsp on my custom form action node, but the post.POST.jsp is not being called during the submission of the form component.
You can't just copy and paste this jsp you have to edit the logic a bit to suit you custom form action.
Views
Replies
Total Likes
Yes, I am aware that I have to edit the logic for the my custom form action but right now I still don't know why does the POST.jsp file is not being used during the form submission? As per this link that in order to create the custom action type a node has to be created and inside that node there should be a post.POST.jsp. I followed the instructions given and my customFormAction is available on the form component (Please see the image)
but the form is not being passed to the post.POST.jsp.
Views
Replies
Total Likes
Hi,
See this community article which has released today. It will help your use case.
//http://scottsdigitalcommunity.blogspot.ca/2017/04/creating-custom-action-for-adobe.html
~ Ratna.
Views
Replies
Total Likes