Copy link to clipboard
Copied
Hi All,
The Javascript inside my submit button will be posting a http url. But we have firewall rules in the webserver that would redirect this url to an IDP's url which is https for user authentication. Currently I do not get any response back and the submit button just hangs. Do we have any workaround for this?
Thanks,
Sailesh.
Copy link to clipboard
Copied
I would expect a redirect to work. However, connecting to an http URL might be blocked at a lower level. First thing to check: does the redirect work when you conect to the URL in a web browser? Second thing: in what app is the form viewed, including version in full (no "latest" please)?
Copy link to clipboard
Copied
Yes this works in a web browser. I am currently viewing my submittable PDF in Acrobat Pro DC with the version details as shown below
Architecture: x86_64
Build: 20.6.20042.371807
AGM: 4.30.98
CoolType: 5.14.5
JP2K: 1.2.2.45402
This is the submitForm call
submitForm({cURL: 'http://xxx:8xx/psc/ps/EMPLOYEE/ERP/c/NUI_FRAMEWORK.PT_LANDINGPAGE.GBL',cSubmitAs: 'HTML' });
Copy link to clipboard
Copied
I have not tested the submitForm function with at server redirect. However, I would suspect that this would mess things up. The summit does a simple HTTP Post, and I believe it expects a simple HTTP Response. If you want a solution I would suggest either setting up a test frame where you can watch the interaction, so you know exactly how Acrobat is handling the redirect, or just assume it isn't and create an alternate endpoint for the submit.
Copy link to clipboard
Copied