Check for changes in form values

Technologies > User Interface Add-Ins > Parts for Forms > Checking for Field Changes

Use the field onchange event listener:

<field table="project" name="dept_contact" onchange="setPhoneDeptContact()">

The afm_form_values_changed JS variable is automatically set to true if the user changes any field value in a form:

<action onclick="if( afm_form_values_changed ) View.panels.get('formPanelChange_form').save();">

View: http://localhost:8080/archibus/schema/ab-products/solutions/parts/form/ab-ex-form-panel-change.axvw