Custom code

This policy setting controls whether users can design InfoPath 2007 forms that use custom code.

If you enable this policy setting, users cannot add managed code or scripts to form templates.

If you disable or do not configure this policy setting, users can design new InfoPath 2007 forms that use custom code to add interactivity and other functionality to forms. Designers can add managed code written in C# and Visual Basic .NET, as well as scripts written in Jscript and VBScript.

Supported on: At least Windows Vista

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Microsoft\Office\12.0\InfoPath\Designer\RestrictedFeatures
Value NameCodeAllowed
Value TypeREG_DWORD
Enabled Value0
Disabled Value1

inf12.admx

Administrative Templates (Computers)

Administrative Templates (Users)