Microsoft KB Archive/926883

= Microsoft Dynamics CRM 3.0 unexpectedly runs an OnLoad client-side script two times for one task when you use Form Assistant for a case form =

Article ID: 926883

Article Last Modified on 8/21/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0

-



SYMPTOMS
You use Form Assistant for a case form in Microsoft Dynamics CRM 3.0. However, Microsoft Dynamics CRM 3.0 unexpectedly runs an OnLoad client-side script two times for one task. Therefore, the OnLoad client-side script for the case form does not run. This problem occurs if the Follow Up item is the first item in the Form Assistant list in the case form.



WORKAROUND
To work around this problem, make sure that the Follow Up item is not the first item in the Form Assistant list in the case form. To do this, follow these steps:
 * 1) Click Settings, click Customization, click Customize Entities, and then double-click Case.
 * 2) In the Entity: Case dialog box, click Forms and Views, double-click Form.
 * 3) Move the position of the Due By field.
 * 4) Click Save and Close.
 * 5) On the Actions menu, click Publish.
 * 6) Click Save and Close.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem
 Customize the Task entity. To do this, follow these steps:  Click Settings, click Customization, click Customize Entities, and then double-click Task. In the Entity: Task dialog box, click Forms and Views, double-click Form. In the Form: Task dialog box, click Form Properties. In the Form Properties dialog box, click OnLoad, and then click Edit.  In the Event Detail Properties dialog box, click to select the Event is enabled check box, and then type the following code in the box for code. alert(&quot;This is the task form onLoad!&quot;); </li> Click OK two times.</li> Click Save and Close.</li> On the Actions menu, click Publish.</li> Click Save and Close.</li></ol> </li> Customize the Case entity. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Settings, click Customization, click Customize Entities, and then double-click Case.</li> In the Entity: Case dialog box, click Forms and Views, double-click Form.</li> In the Form: Case dialog box, click Form Properties.</li> In the Form Properties dialog box, click OnLoad, and then click Edit.</li>  In the Event Detail Properties dialog box, click to select the Event is enabled check box, and then type the following code in the box for code. alert(&quot;This is the case form onLoad!&quot;); </li> Click OK two times.</li> Click Save and Close.</li> On the Actions menu, click Publish.</li> Click Save and Close.</li></ol> </li> Create a new case. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Service, click Cases, and then click New.</li> <li>In the Case: New dialog box, complete fields, and then click Save and Close.</li></ol> </li> <li>Double-click the case that you created in step 3.</li></ol>

Keywords: kbtshoot kbmbscustomization kbmbsmigrate kbbug KB926883

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.