Test an event script

Can I do this task?

You should always test your scripts before publishing your customizations.

  1. In the Navigation Pane, click Settings.
  2. Under Customization, click Customizations.
  3. In the Customization area, click Customize the System.
  4. Under Components, expand Entities, and then expand the entity you want.
  5. Click Forms. In the list, click a form to edit it if it has a Form Type of Main.
  6. On the Home tab, click Preview, and then select Create Form, Update Form, or Read-Only Form.
  7. 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.
  8. 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.
  9. If you have added an onSave event for the form, for create and update modes, on the top of the dialog box, click Simulate Form Save to see if the event executes as expected.
  10. To close the Preview form, on the File menu, click Close.

Related Topics

Create and Configure Entity Forms

Form Scripting

Understanding Entities

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