Expand my Community achievements bar.

SOLVED

Error on AEM Form component Refresh on Submit

Avatar

Level 2

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 

 

MoiezMa_0-1725632271295.png

 

 

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
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

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. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

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.