Update: JPDF2HTM5 has been rebranded as BuildVu and JPDFForms has been rebranded as FormVu

PDF XFA – Sending data as an Email

This simple article explains how to send XFA form data as an email in two possible ways.

Why does the client need to send data as email?

If your clients use Adobe Reader instead of Adobe Acrobat Pro, they cannot save the filled forms, so therefore posting the data or sending via email are the only possibilities they have.

Option 1: [Adjust XML source to send email]

Create a text field and a quantity field called product and quantity.At this stage, you then insert an email Submit button which can be obtained from Object Library.

<subform w=”576pt” h=”756pt”>
<field name=”product” y=”9.525mm” x=”6.35mm” w=”62mm” h=”9mm”>
…….//other stuff goes here
</field>
<field name=”quantity” y=”22.225mm” x=”6.35mm” w=”62mm” h=”9mm”>
…….//other stuff goes here
</field>
<field name=”EmailSubmitButton1″ y=”38.1mm” x=”6.35mm” w=”34.925mm” h=”6mm”>
<event name=”event__click” activity=”click”>
…//other stuff goes here
<submit format=”xml” textEncoding=”UTF-8″ target=”mailto:”/>
</event>
</field>
</subform>

Once you have created the form you just need to alter the value of the target attribute to your target email address.

Example:

<submit format=”xml” textEncoding=”UTF-8″ target=”mailto:iam@myemail.com“/>

Option 2 : [ use field tab under object tab ]

Another simple way is to use the field properties and alter the email address to your target address. See the screenshot below:

emailxfa

Now you can save the form as PDF and start sending emails.

If you’re a first-time reader, or simply want to be notified when we post new articles and updates, you can keep up to date by social media (TwitterFacebook and Google+) or the  Blog RSS.

Related Posts:

The following two tabs change content below.

suda

Java EE developer at IDRSolutions
Suda is the Senior Java EE Developer at IDR Solutions, and specialises in XFA, Fonts, True-Type Fonts, application servers and conversions. He is a keen science-fiction fan in his spare time.
suda

About suda

Suda is the Senior Java EE Developer at IDR Solutions, and specialises in XFA, Fonts, True-Type Fonts, application servers and conversions.
He is a keen science-fiction fan in his spare time.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>