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

Adobe Javascript

New Here ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

Hi I would like to collect all of the text field value and send to my web service end point for example. www.getme.com/pdfreceiver.aspx

using either GET or POST method.

Do you guys know how to do that?

TOPICS
Acrobat SDK and JavaScript

Views

354

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

correct answers 1 Correct answer

Community Expert , Feb 01, 2019 Feb 01, 2019

Yes (if you've selected GET). It's not really an HTML file, more of an HTML request.

Votes

Translate

Translate
Community Expert ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

Take a look at the submit action, it allows you to specify in which format forms data is submitted. One option is to submit as HTML. In this case, you will have exactly the same behavior as with a web form.

2019-02-01_14-16-44.png

Votes

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 ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

when the data is export from the html format how it supposes to look like?

is it like something below?

http://www.domain.com/capturedata.aspx?fieldfirstname=john

Votes

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 ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

LATEST

Yes (if you've selected GET). It's not really an HTML file, more of an HTML request.

Votes

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 ,
Feb 01, 2019 Feb 01, 2019

Copy link to clipboard

Copied

If you want to do it using a script read up on the submitForm method of the Document object. You can use its cSubmitAs parameter to send the data as an HTML file, and the bGet parameter to define whether it be sent using GET or POST.

Votes

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