Client-side

An OnChange script runs on the browser whenever a user changes the field to which the script is attached.

  1. Click <My Profile> | Administration | Customization | Primary Entities / Secondary Entities | <Entity>.
  2. Click the Screens tab.
  3. Click the Edit icon beside the screen containing the field you want to attach the script to.
  4. Enter OnChange scripts in CreateScript, OnChangeScript, and ValidateScript fields.

There's a difference in syntax between server-side scripts and client-side scripts. This is because server-side scripts have access to the current CRM Object's fields and properties, whereas client-side scripts have access to the HTML Document Object Model (DOM). For more information on the CRM Object, see the Developer Help on the Sage CRM Help Center.