Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

postSubmit event fires before HTTP Submit completes

Avatar

Level 7

I am sending a form as an XDP via HTTP Submit. The HTTP endpoint is returning another XDP to merge into the document. I would like to make some modifications to the Connection DOM before the data is merged into the form. I would like to do this through the postSubmit event. The problem I am having is that the postSubmit event fires immediately after the submit button is clicked, long before the response is returned from the host. Is there any way to modify the data coming back before it is merged? I am using Designer ES4 and Acrobat 11.

1 Accepted Solution

Avatar

Correct answer by
Level 10

postSubmit event will not wait for the response from the Server. It will trigger immeidiatelly once the data gets submitted through HTTP POST.

Why don't you try initialize/layout:ready event of the form to make your modifications?

Nith

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

postSubmit event will not wait for the response from the Server. It will trigger immeidiatelly once the data gets submitted through HTTP POST.

Why don't you try initialize/layout:ready event of the form to make your modifications?

Nith