Page History
...
In order to send a click event on the DOWNLOAD button with the form fields values, add a call to the sendEvent function to the button onclick event as seen below:
...
Info | ||
---|---|---|
| ||
<input type="button" value="DOWNLOAD" onclick="openDownloadForm(); CardioLogAgent.API.sendEvent({e: 'Button Click', metaData: {name: 'DOWNLOAD NOW', firstName: 'John', lastName: 'Smith', email: 'john.smith@intlock.com', phone:1800800800, country: 'USA'}}, function () {console.log('event sent successfully');});" /> |
...