If you customize one of the default Outlook forms and then publish it to a folder or forms library, the name given at that time is appended to the standard message class for that item type to create a unique message class for that form. For example, if you customize a contact form, publish it, and name it MyForm, the message class for the published form will be IPM.Contact.MyForm. Any new items that use this custom form will have their message class field set to IPM.Contact.MyForm (see Figure 4).
If MyForm is published to the Contacts folder, then under the Actions menu, you will have a New MyForm option. This will create a new contact item and its message class will be set to IPM.Contact.MyForm. However, if you click on the New Contact toolbar button, you will get a new default Contact form. As we saw in the previous Try This, this is because the default form for the contact folder is still set to Contact. To change this:
1. Display the Properties for the Contacts folder (either point to Folder on the File menu, and then click Properties for "Contacts" or right-click the Contacts folder and click Properties).
2. In the When posting to this folder, use setting, select your custom form.
3. Click OK.
Note To return the default back to the Contact form, set the When posting to this folder, use setting back to Contact.
It is important to note that importing or exporting items through the Import/Export Wizard does not allow you to specify a message class for the new Outlook items. All of the new items are assigned the standard message class depending on the type of item being imported.
Note For a complete list of messages classes and how each one is used by Outlook, see the Item types and message classes topic in the Outlook Help file.
When working with custom forms, is is a good practice for you to always keep track of the message class fields. It is recommended that you add the message class field to the table view for your custom folders so that you can be sure that each item is actually using the proper form. To do this, click your custom folder and then:
1. Point to Current View on the View menu and then click Customize Current View.
2. Click Fields on the View Summary dialog box.
3. In the Select available fields from drop-down list, click the appropriate All <folder type> fields selection for the type of custom folder you created. For example, click All Contacts fields for a contact-type custom folder.
4. In the Available fields list, click Message Class, and then click the Add -> button.
5. In the Show these fields in this order list, click Message Class, and then click either Move Up or Move Down to position the field where desired.
6. Click OK.