Skip to main content
Canadian Ken
Participant
May 25, 2021
Question

Submitting a Form that is Embedded

  • May 25, 2021
  • 1 reply
  • 1954 views

Good Day from Canada

 

I have created an Adobe PDF Form with a submit button that i can email to a customer, they can fill it out and hit submit and it is emailed back to me.  This is a product order form and works as intended.

 

I would like to embed this identical form (minus the submit buttons) into my website, allowing the customer to fill it out, hit a button and have the form emailed back to me.  I use Square for my website and online store.  I cannot figure out how to get this form to email back to me.

 

In the event it cannot be emailed back, I think i understand that i can have it returned as a file to a URL i set.  I have a hosting package through WHC (Web Hosting Canada) and could set something up there, but i am not sure what i would need to do, or what to setup to make this functional.  This is a form that changes on a weekly basis.  If I am able to set it up to send the form to a URL, is it possible to auto generate an email telling me the URL has received a submitted form?

 

I hope this makes sense (or some sort of sense) that someone is able to give me some direction.  If you need other info, please ask, and i will gladly give it to you.  This has become very frustrating to me.

 

Thanks in advance for reading, contemplating and assisting.

 

Canadian Ken

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
May 25, 2021

Do you mean you want the user to fill out the form from a link on your web site?  

Unfortunately the "fill out and email submit" bit only works for PDF viewers that implement these interactive features. Most browser based viewers don't, nor do most mobile PDF viewers.  You can't guarentee that the user will open the PDF in a viewer that is compatible with these features.   That's for normal operation of the PDF form submit button. 

   HTML (run in a browser) doesn't really have any control over the PDF file, so it can't submit the completed form to anything from the browser. You have to think about how these things fit together and design the workflow around that. Just in general HTML and PDF each operate in thier own world, they don't reliably intersect. So the form filling thing has to be done in either HTML or PDF. Now you can have the user fill in an HTML form, submit the form data to the HTML server, where a script would fill in the PDF and email that to you. The key point here is that the switch from HTML to PDF is happening server side.      

 

You'll find some data on PDF form data handling here:

https://www.pdfscripting.com/public/Form-Data-Handling.cfm

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
May 25, 2021
Thank you for the information. My biggest problem right now is........I can view 1 pdf file and then the adobe program freezes. I can only get out of it by turning computer off and on again. I cannot do anything else. Stupid question but I need some help.
D.