Test an event-based script

Can I do this task?

You should always test your scripts before publishing your customizations.

  1. In the Navigation Pane, click Settings, click Customization, and then click Customize Entities.
  2. Open the entity that contains the form with the script you want to test, and then click Forms and Views.
  3. Click Form, then on the Actions toolbar, click More Actions, and then click Edit.
  4. On the Preview menu, click Create Form, Update Form, or Read-Only Form.
  5. If you have added an OnLoad event for the form, when you open the form in each mode, verify that your event executed as expected.
    • If your code depends on data existing in the form when it loads, you may want to test your script in an onChange or onSave event so that you can enter sample data into the form. The Update Form will open with no data.
  6. If you have added an onChange event for a field, for create and update modes, enter the data in the field and verify that the event executes as expected.
  7. If you have added an onSave event for the form, for create and update modes, on the Form toolbar, click Simulate Form Save to see if the event executes as expected.
  8. To close the Preview form, on the File menu, click Close.

Related Topics

Edit Entity Forms

Form Scripting

Customizing Entities

Configure Scripts for Form Events

Preview Form Customizations

Customizing Entities - Troubleshooting

Did you find the information that you need?
Yes      No 
If not, what information do you need? (optional)

© 2009 Microsoft Corporation. All rights reserved.