Client Script Type — onChange() Template 'if' Statement
- ALL field values change when a form loads
- onChange() template's if statement aborts script execution if
- Field values change due to a form load
- The newValue has no value
Modifying the script to change the behavior if necessary. For example, you might also check to see if
the field value change was due to a template load.
function onChange (control, oldVaIue, newVa1ue, isLoading, isTemp1ate) {
if (isLoading || newVa1ue || isTempIate){
return;}
// Type appropriate comment here, and begin script below
}