Avatar

Level 10

Hi,

you can use a regular button and a JavaScript in its click event to send the form.

Here an example:

The variables var0 and var1 holding the values from form fields which are used for the cTo and cCc parameters of the script.


var var0 = xfa.resolveNode("Formular1.#subform.Textfield1").rawValue;


var var1 = xfa.resolveNode("Formular1.#subform.Textfield2").rawValue;



event.target.mailDoc({


  bUI: false,


  cTo: var0,


  cCc: var1,


  cBcc: '',


  cSubject: 'Add your mail subject here ...',


  cMsg: 'Add your mail message here ...'


});


This will also work in Adobe Reader when you add additional rights to your form with Acrobat once.

How you can do this depends on the version of Acrobat you use.

In Acrobat XI it's under File > Save as Other > Reader Extended PDF.