Avatar

Level 10

Hi,

correct, that was my fault.

The script fails because of an unescaped ' character in cMsg.

Here's the corrected one.

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

 

event.target.mailDoc({

          bUI: false,

          cTo: var0,

          cCc: 'email4you@youraddress.org',

          cBcc: '',

          cSubject: 'Filled form',

          cMsg: 'Here\'s my filled form.'

});