Skip to main content
Participant
November 6, 2020
Question

Accessing FIllable Fields in JavaScript Button

  • November 6, 2020
  • 2 replies
  • 254 views

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

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
November 6, 2020

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

ls_rbls
Community Expert
Community Expert
November 6, 2020

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