Error on AEM Form component Refresh on Submit | Community
Skip to main content
Level 3
September 6, 2024
Solved

Error on AEM Form component Refresh on Submit

  • September 6, 2024
  • 1 reply
  • 583 views

Hi I have form embedded on page with AEM Form component and one of the option is to "Refresh page on Submission". if I enable that option then i'm getting an error during submission. I have setup the form to redirect to another page on submission. if I don't enable that option then redirect page is loaded within Iframe. To properly redirect to another page I need to enable that option "Refresh page on submission". 

 

Please note, this issue only occur in publisher. In author it's submitting and redirecting to another page without any issue 

 

 

 

This is the error it's giving in publisher logs. 

*ERROR* [10.43.0.90 [1725630518401] POST /content/forms/af/forms/contact-form/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.servlet.GuideSubmitServlet Could not complete Submit Action due to null
java.lang.NullPointerException: null
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 MoiezMa

Found the issue. Anyone in future have similar issue. It's related to "To" email field in "Email Sent" option. one of the email address was incorrect. I was using vars to get email from input field but value was missing in email so server responded with null error. Make sure you are getting value to use to send email. 

1 reply

MoiezMaAuthorAccepted solution
Level 3
September 6, 2024

Found the issue. Anyone in future have similar issue. It's related to "To" email field in "Email Sent" option. one of the email address was incorrect. I was using vars to get email from input field but value was missing in email so server responded with null error. Make sure you are getting value to use to send email.