Hello,
I use the following function to send emails in my form.
function sendEmail(to, cc, subject, body, attachment)
{
try
{
var appItem;
var mailItem;
appItem = new ActiveXObject("Outlook.Application");
mailItem = appItem.CreateItem(0);
mailItem.Recipients.Add(to);
mailItem.Subject = subject;
mailItem.Body = body;
mailItem.Attachments.Add(attachment,1);
mailItem.Display();
}
catch(ex){ XDocument.UI.Alert(ex.description);
}
}
I pass "XDocument.URI" for attachment parameter, which attaches the form to the email. However, when the recipients open their emails, the form is still editable and they think they can change it and hit "Save" to update their forms. I want to disable the form when it is attached to an email so they will know that they cannot change anything on it. Is there a way to do it?
I welcome all your ideas.
Thanks!