Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adaptive Form submission Errors while redirecting to thank you page

Avatar

Avatar
Level 1
sushmaa61672298
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
sushmaa61672298
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
sushmaa61672298
Level 1

27-04-2021

We are seeing intermittent issues while submitting adaptive forms in AEM . Nothing happens when clicked on submit and does not redirect to thank you page though Thank you page is correctly configured on author.

Seeing below error in console when clicked on Submit.

VM12171:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at h (formapp.min.js:1)
at s.doAjaxSubmitSuccess (guideRuntime.min.js:5221)
at Object.success (guideRuntime.min.js:5214)
at j (en.min.js:458)
at Object.fireWith [as resolveWith] (en.min.js:476)
at x (en.min.js:1151)
at XMLHttpRequest.<anonymous> (en.min.js:1206)

 

I am using AEM 6.4 version with SP2 upgrade.

AEM Forms Form submission Errors Thank you page redirection

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile
asutosh_jena
Level 10

27-04-2021

Hi @sushmaa61672298 

 

As per the error message it looks like while calling JSON.parse function it's giving an error and as you mentioned that it's an intermittent issue:

  1. It could be an issue with the data that is being passed from the form.
  2. Please ensure you are passing all the requried data and proper data validations are in place.
  3. Also please observe the data submission pattern, what is the difference between the data when one call gives success and other call gives the console error. This will help to identify the RC and will be able to resolve the issue.

Thanks!

Answers (0)