David Kavalsky
posted this on July 05, 2011 09:08
Do you have form data that you would like sent directly to Aweber? No problem! LiveBall makes this a simple process by making a few adjustments to Javascript code.
The developers here at ion have created a simple Javascript that will be placed in the head of the LiveBall pages that you wish to integrate with Aweber. Pull up the script editor at the top of the LiveBall page you wish to integrate with Aweber by clicking the orange “script” button at the top of the page. Copy and paste the following script into the “custom script” text box in the <head> script section of the script editor:
<script type="text/javascript">
function SaveAndSubmit()
{
liveballData("firstname",document.liveballform.firstname.value);
liveballData("lastname",document.liveballform.lastname.value);
liveballData("emailaddress",document.liveballform.emailaddress.value);
document.liveballform.action = “http://yourAweberURLHere.com";
document.liveballform.submit();
}
</script>
Now that you have the script in place, just make a few adjustments to some basic placeholders in the Javascript:
Now that you have altered the Javascript to match your requirements, insert the below code into the “onsubmit” text field located in the <form> submit section of the script editor to trigger an export of your respondent data to Aweber:
SaveAndSubmit();return false;
Once you click save, your LiveBall landing page will be able to send respondent data to your Aweber account.
If you have any further questions about Aweber integration, contact your ion account manager for support.