Sunday, January 30, 2022

Custom form script is now disabled by default

Last updated: Oct 13, 2017

ISSUE

Custom form script is now disabled by default and requires setting registry keys to re-enable it.

  1. The new registry key has a default value of 1, which indicates form script should not run.

    First create this key:

    32 bit Office on 64 bit Windows

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Security

    32 bit Office on 32 bit Windows or 64 bit Office on 64 bit Windows

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook\Security

    Then create DWORD (32-bit) Value 0 and set the name to DisableCustomFormItemScript to enable custom form scripts.

  2. Once custom form scripts have been enabled at all, they must then be enabled per form message class. For instance, if you have a form with the message class IPM.Note.Custom, we must register "IPM.Note.Custom" as a trusted form message class. To do this, first create this key:

    32 bit Office on 64 bit Windows

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList

    32 bit Office on 32 bit Windows or 64 bit Office on 64 bit Windows

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList

Then, create REG_SZ values in this key for each form you wish to allow scripts to run. In the above example, you would create a REG_SZ value named "IPM.Note.Custom" with empty data.

When designing a form, Run This Form will run a form using the message class of the base form. So if you started designing an IPM.Note form and want to Run This Form, you will need to have IPM.Note registered. After you publish, the published message class is what will be checked. Once you have finished designing your form and published it to a custom form name, remove the standard "IPM.Note" from the trusted list.

Notes: 

  • You need to restart Outlook after setting the TrustedFormScriptList key.

  • The example registry keys use 16.0 for Outlook 2016. Use 15.0 for Outlook 2013, 14.0 for Outlook 2010 and 12.0 for Outlook 2007.

After making the above changes the registry keys will look like the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Security]

DisableCustomFormItemScript"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList]

"IPM.Note.Custom"=""

"IPM.Note"=""

Registry keys

Registry keys

NOTE: In some cases forms in secondary mailboxes and Public folders still don't work after the registry key settings. To fix this, enable scripts in the Trust Center:

  1. Click File > Options. Then select Trust Center > Trust Center Settings > Email Security.

  2. Under the Script in Folders section, click the checkbox for Allow script in shared folders and Allow script in Public folders and click OK and OK again to close out the windows.

STATUS

The change was first introduced in the September 12th, 2017 Outlook Public Updates and is included in the following MSI updates which now require the registry keys.

Outlook 2007

Outlook 2010

Outlook 2013

Outlook 2016

Click to Run status is as follows:

  1. Monthly Channel (Current Channel) will start supporting the registry keys in the update scheduled for September 18th release build 16.0.8431.2079.

  2. Semi-Annual Channel (FRDC) supports the registry keys with build 16.0.8431.2079.

  3. Deferred Channel supports the registry keys with build 16.0.8201.2193.

  4. Deferred Extended status is TBD.

  5. Insider Fast status is TBD.

  6. Insider Slow supports the registry keys with build 16.0.8431.2079.

More Resources

Icon Experts (brain, gears)

Ask the experts

Connect with experts, discuss the latest Outlook news and best practices, and read our blog.

Outlook Tech Community

Icon Community

Get help in the community

Ask a question and find solutions from Support Agents, MVPs, Engineers, and Outlook users.

Outlook Forum on Answers

Icon feature request (light bulb, idea)

Suggest a new feature

We love reading your suggestions and feedback! Share your thoughts. We're listening.

Find out how

See Also

Fixes or workarounds for recent issues in Outlook for Windows

Resolve Outlook for Windows issues with automated troubleshooting tools  

2 comments:

  1. HAVE YOU BEEN SCAMMED OF YOUR COINS AND WANTS TO GET IT RECOVERED BACK???

    I invested a total of$95,000.00USD worth of Bitcoin with an online company who does trading and was guaranteed a payout of 25% a week. They ended up shutting down their company website but their website was still running. So I could still see my dashboard at that time and instead of paying weekly they ended up compounding my money. It ended up compounding to$179, 000USD so I requested for a withdrawal which was declined before they shutdown their website, I complained to my colleague at work who directed me about this recovery expert, Mr. Morris Ray, that helped him, I contacted him immediately, what surprised me most, was that I recovered my money that same week. You can contact him on his email at MorrisGray830 @ Gmail . com and on WhatsApp: + 1 (607) 698-0239 and he will assist you on the steps to recover your invested funds.
    Just trying to help those who where scammed just the way I was too.

    ReplyDelete
  2. I know a professional Private Investigator named james who has worked for me before on something i can't disclose, he offers very legitimate services such as clearing of bad records online without being traced back to you, He clone/hack mobile phones, hack Facebook account, instagram, WhatsApp, emails, Twitter, bank accounts, Skype, FIXES CREDIT REPORTs, track calls. He also help retrieve accounts that have been taking by hackers. His charges are affordable, reliable and 100% safe. For his job well done this is my own way to show appreciation, Contact him via address ethicalhackers009@gmail.com
    Whatsapp +14106350697

    ReplyDelete