1). In Outlook, I have cloned the Standard Message Form IPM.Note to a Custom Form in my Personal Forms Library IPM.Note.myMessage.
2). I turned on page #2 of the forms, and placed on it: a Check box and a Text Box.
3). Under View Code (bringing up the script editor) I inserted the following code by doing View Code -> Script -> Event Handler in Developer Mode.
Sub Item_CustomPropertyChange(ByVal Name)
msgbox ("Hello")
End Sub
Function Item_CustomAction(ByVal Action, ByVal NewItem)
msgbox ("Hello")
End Function
4). I published the form to my Personal Form Library as myMessage
5). In Trust Center I have "Enable all macros (not recommended; potentially dangerous code can run)
6). I enabled Scripts for my Custom Message Class IPM.Note.myMessage by adding the registry keys in the article:
7). I am running Outlook Microsoft 365 for Enterprise / version 2004 Build 12730.20206 Click-To-Run
8) I am Office Microsoft Fork program, M365 OuterRing, Monthly Fork Builds that have been promoted from Dogfood.
9). I am running Windows 10 with all updates applied.