Adobe Javascript

New Here ,
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?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

TOPICS
Acrobat SDK and JavaScript

Views

103

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

Adobe Javascript

New Here ,
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?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

TOPICS
Acrobat SDK and JavaScript

Views

104

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
Feb 01, 2019 0
Adobe Community Professional ,
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

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
Reply
Loading...
Feb 01, 2019 1
New Here ,
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

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
Reply
Loading...
Feb 01, 2019 0
Most Valuable Participant ,
Feb 01, 2019

Copy link to clipboard

Copied

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

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
Reply
Loading...
Feb 01, 2019 1
Most Valuable Participant ,
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.

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
Reply
Loading...
Feb 01, 2019 0