Highlighted

Accessing FIllable Fields in JavaScript Button

New Here ,
Nov 06, 2020

Copy link to clipboard

Copied

Hey Adobe Community,

 

I'm trying to send a fillable form's contents to a Webhook in JSON format through button click. I tried the direct send at first but the webhook does not support the content type (presumably the entire pdf) so i'm trying to parse the form fields in JavaScript and send that way. How can I access the form fields in the JavaScript window? Or, is there a better way to accomplish what I'm trying to do? TIA

TOPICS
Acrobat SDK and JavaScript, Create PDFs, How to, PDF forms

Views

22

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

Accessing FIllable Fields in JavaScript Button

New Here ,
Nov 06, 2020

Copy link to clipboard

Copied

Hey Adobe Community,

 

I'm trying to send a fillable form's contents to a Webhook in JSON format through button click. I tried the direct send at first but the webhook does not support the content type (presumably the entire pdf) so i'm trying to parse the form fields in JavaScript and send that way. How can I access the form fields in the JavaScript window? Or, is there a better way to accomplish what I'm trying to do? TIA

TOPICS
Acrobat SDK and JavaScript, Create PDFs, How to, PDF forms

Views

23

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
Nov 06, 2020 0
Adobe Community Professional ,
Nov 06, 2020

Copy link to clipboard

Copied

I think you can use the built-in JavaScript function in Acrobat  JSON.parse(); to post the JavaScript objects to your HTML page.

 

I am learning JavaScript so I may be wrong. But from what I'm reading this is the way to go. The best example I could find is briefly explained here: https://www.w3schools.com/whatis/whatis_json.asp

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...
Nov 06, 2020 0
try67 LATEST
Most Valuable Participant ,
Nov 06, 2020

Copy link to clipboard

Copied

You can change the format in which the file is sent. What command are you using for submitting it?

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...
Nov 06, 2020 0