How not to attach a form in an email notification

D

Daniel

Hi,

Is it possible to send an e-mail notification without sending the form? So
far, I've tried the following commands and all of them give an error in
jscript:

XDocument.DataAdapters("submitEmail").AttachmentFileName = null; //This is a
type mismatch error

XDocument.DataAdapters("submitEmail").AttachmentType =
XdAttachmentType.xdNone; //Unknown method error

XDocument.DataAdapters("submitEmail").AttachmentType = xdNone; //xdNone is
undefined error

XDocument.DataAdapters("submitEmail").AttachmentType = 2; //Unknown method
error

I've followed the instructions listed in
http://msdn2.microsoft.com/en-us/library/bb229853.aspx

Somebody knows the right method or property?

Thanks in advance!
 
S

S.Y.M. Wong-A-Ton

What version of InfoPath are you using? The property you're trying to set is
only available in InfoPath 2007.
 
Top