• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

submitform redirection issue

New Here ,
May 06, 2020 May 06, 2020

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.

TOPICS
Acrobat SDK and JavaScript

Views

165

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 06, 2020 May 06, 2020

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)?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 06, 2020 May 06, 2020

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' });

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2020 May 06, 2020

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.  

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 06, 2020 May 06, 2020

Copy link to clipboard

Copied

LATEST
Powered by Cricket Wireless

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines