Enable an alternative form instrumentation

Enable alternative form instrumentation that supports Gecko, Blink, and WebKit engine browsers (Firefox, Chrome, Safari).

To use the new cm_newFormTracker function, the following requirements must be met:
  1. Always precede cm_NewFormTracker{} definition with cm_NewLinkTracker = true declaration to ensure that the IBM® tag library can handle forms that are submitted by calling the form.submit() method.
  2. Before you enable the cm_newFormTracker function, verify that ALL forms on the target pages have id= attribute values.
  3. If any form onsubmit functions take this or event as an argument then they must be listed by id= value within the submitFunctions object in the cm_NewFormTracker JSON object. Forms without an id= value, or that take this or event as an argument in the onsubmit= handler function and are not listed in the cm_NewFormTracker JSON object, can generate errors and no longer function correctly.
Example 1: Form HTML
<form id="frm1" action="http://www.google.com" onsubmit="return validate1(this)">
<form id="frm2" action="http://www.google.com" onsubmit="return validate2(event)">
To enable alternative form tracking on a page that includes forms, the structure of the object is:
cm_NewFormTracker={submitFunctions:{"frm1":"validate1","frm2":"validate2"}};
Example 2: Enabling cm_NewFormTracker with no special handling for this or that function arguments in onsubmit= handlers.
<script type="text/javascript">cm_NewLinkTracker = true;cm_NewFormTracker =
 {submitFunctions:{}};</script>
<script type="text/javascript" src="//libs.coremetrics.com/eluminate.js"></script>
Example 3: Enabling cm_NewFormTracker + special handling for two forms on the page.
<script type="text/javascript">cm_NewLinkTracker = true;cm_NewFormTracker =
 {submitFunctions:{"frm1":"validate1","frm2":"validate2"}};</script>
<script type="text/javascript" src="//libs.coremetrics.com/eluminate.js"></script>
Related HTML forms and JavaScript functions supporting Example 3:
<script type="text/javascript">
function validate1() {alert('validate1'); return};
function validate2() {alert('validate2'); return};
</script>

<form id="frm1" action="http://www.nowhere123.com" onsubmit="return validate1(this)">
<input type="submit" value="frm1 Submit"></form>
<form id="frm2" action="http://www.nowhere123.com" onsubmit="return validate2(event)">
<input type="submit" value="frm2 Submit"></form>