Client-side
An OnChange script runs on the browser whenever a user changes the field to which the script is attached.
- Click <My Profile> | Administration | Customization | Primary Entities / Secondary Entities | <Entity>.
- Click the Screens tab.
- Click the Edit icon beside the screen containing the field you want to attach the script to.
- 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.
