<h2>onChange script error: TypeError: Cannot read property 'value' of undefined function () { [native code] }</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>When you insert an assessment template into the attestation related list of the Vendor record. We get an onChnage Client Script Error message.</li></ul></section></div><div ><h3 >Release</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>New York Patch 9.</li></ul></section></div><div ><h3 >Cause</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>This is because there were fields missing from the VRA Assessment form:<br />1. Applies to (which was setting up as Engagement)<br />2. Engagement Field was missing on Form and that was the cause.</li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>The form was customized by removing Engagement and Applies to Field. On applies to being Vendor Engagement disappears and on Applies to being Engagement the field appears, this was breaking as Engagement is removed from DOM.<br />if(g_form.getValue('applies_to').toString() == 'engagement' && engagement != '')<br />message = formatMessage(getMessage('Risk assessment for engagement {0}'), [engagement]);</li></ul></section></div></article></div>