AEM form component - Secure ajax call | Community
Skip to main content
Level 3
February 1, 2023
Solved

AEM form component - Secure ajax call

  • February 1, 2023
  • 1 reply
  • 928 views

Hi All, 

In order to improve the content on the pages, we need feedback from end users (non-authors). We'll have email address from/to fields and comments/feedback fields as part of the form. The form data must be sent to a separate java email service (outside of the AEM). How should we submit this data using an ajax call in a secure manner.

Aem version - Cloud services

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nirmal_Jose

Best way is to get the form as a component -> create a secure servlet and bind it to the form component resourcetype.-> inturn can submit the data to the email service.

A very good reference which matches with your use case from my perspective is [1]. Hope this gives you a direction.

 

[1] - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/secure-sling-servlet-need-suggestions/td-p/417888

1 reply

Nirmal_Jose
Adobe Employee
Nirmal_JoseAdobe EmployeeAccepted solution
Adobe Employee
February 1, 2023

Best way is to get the form as a component -> create a secure servlet and bind it to the form component resourcetype.-> inturn can submit the data to the email service.

A very good reference which matches with your use case from my perspective is [1]. Hope this gives you a direction.

 

[1] - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/secure-sling-servlet-need-suggestions/td-p/417888

JeevanRaj
Community Advisor
Community Advisor
February 2, 2023

I have used a very similar approach to the one suggested above and can say that it works without any issues.