Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<head>
<script language="JavaScript" type="text/JavaScript">
<!-- Enable Stealth Mode
// This script uses a button or text link to open a MAPI connection to the clients
// Outlook application and launches the custom form defined by the button/link
// and passes custom values into the form.
// Variable Definitions
var nameSpace = null;
var mailFolder = null;
var mailItem = null;
var tempDoc = null;
var outlookApp = null;
function OpenOutlookDoc(whatform)
{
try
{
outlookApp = new ActiveXObject("Outlook.Application");
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add(whatform);
mailItem.Subject = "This is the subject"
// These pass values into custom form fields
// by first defining the field name under userproperties then assigning a value.
mailItem.userproperties("MyFieldName1") = "Some information"
mailItem.userproperties("MyFieldName2") = "Some information"
mailItem.userproperties("MyFieldName3") = "Some information"
mailItem.Display(0)
}
catch(e)
{
// act on any error that you get
}
}
// Disable Stealth Mode -->
</script>
</head>
<body>
<form>
To use form buttons:<br>
<!-- NOTE: To get the name of the form click Tools, Forms, Choose A Form and then browse to the form you want to open. Click on it once and it will display the name on the Message Class line of that window. -->
<input type=button value="Form A" NAME="OutlookOpen1" OnClick="OpenOutlookDoc('IPM.Appointment.Calendar Entry')"><br><br>
To use text links:<br>
<a href=javascript:void(0) onClick="OpenOutlookDoc('IPM.Appointment.Calendar Entry')">Form A</a><br><br>
<!-- change the information between the single quotes to match your custom forms class Name like IPM.Note.CustomForm - you can have different links to different forms, provided you specify a different class Name for each link //-->
</form>
</body>
</html>