Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Client side scripts no longer work in Microsoft Dynamics CRM Online after the December 2012 Service Update


Symptoms

If your forms use the V4.0 client API (crmForm), you may encounter script errors after your Microsoft Dynamics CRM Online organization is updated to the December 2012 Service Update. You may see a dialog appear that says "Undefined", or you may see an error in the bottom left corner of the form that says "Error on page". Other various script errors may appear.

↑ Back to the top


Cause

The December 2012 Service Update for Microsoft Dynamics CRM introduced a new System Setting that controls whether or not HTML Components (HTC) are included in Microsoft Dynamics CRM forms. This setting is disabled by default in Microsoft Dynamics CRM Online. 

The following crmForm properties require HTC:


.Save(
.SaveAndClose(
.FormType
.ObjectTypeCode
.ObjectId
.ObjectTypeName
.RequiredLevel
.SetFocus(
.FireOnChange
.Min
.Max
.DataValue
.isDirty
.Disabled
.SelectedOption
.SelectedText
.SortingEnum
.Sort
.SelectedIndex
.InnerText
.OptionsXml
.Precision
.DataXml
.Text
.Value
.DisplayValue
.WillSubmit
.DataChangeHandler
.BypassValidation
.AllowFormFocus
._bSaving
._htcInitCompleted
.SubmitFormId
.NO_DATA
.RefreshOnSave
.Visible
.ForceSubmit
.Form
.TimeControl
.isInitialized
.allowblankdate
.IsMoney
.IsBaseCurrency
.CurrencySymbol
.CurrencyPrecision
.IgnoreCurrencySymbol
.IgnoreRange
.PrecisionChangeHandler
.TrimValue
.MaxLength
Enumerator

↑ Back to the top


Resolution

1. Log into the Microsoft Dynamics CRM web application as a System Administrator.

2. Click Settings, click Administration, and then click System Settings.

3. Click the Customization tab.

4. Click the checkbox next to the setting labeled "Include HTC Support in Microsoft Dynamics CRM forms"

5. Click OK.

↑ Back to the top


More Information

The crmForm API was deprecated with the Microsoft Dynamics CRM 2011 release. For more information on this topic and other potential causes of script errors after the December 2012 Service Update, refer to the following Blog posts:

Resolve Breaking Script Issues When Upgrading Microsoft Dynamics CRM
http://blogs.msdn.com/b/crm/archive/2012/05/29/resolve-breaking-script-issues-when-upgrading-to-the-next-release-of-microsoft-dynamics-crm.aspx

Microsoft Dynamics CRM 2011 Custom Code Validation Tool Released
http://blogs.msdn.com/b/crm/archive/2012/06/21/microsoft-dynamics-crm-2011-custom-code-validation-tool-released.aspx

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2804561
Revision : 1
Created on : 1/7/2017
Published on : 1/18/2013
Exists online : False
Views : 52