Jessica Collier
posted this on Jan 23 11:51
A number of marketing software packages provide javascript that customers can plug into HTML form pages to seamlessly route form data to another system, perform client-side validation, analyze partial form completion, etc. To better integrate with these services, every form in LiveBall is identified with "name" and "id" attributes of "liveballform".
For example:
<form name="liveballform" method="post" id="liveballform">
This makes it easy for Javascript to quickly reference the form. In addition, all of the fields in LiveBall forms have the name and id of their underlying data collection data name.
For example:
<input type="text" name="firstname" id="firstname" value="" size="40" maxlength="40" />
<input type="text" name="lastname" id="lastname" value="" size="40" maxlength="40" />
<input type="text" name="email" id="email" value="" size="80" maxlength="80" />
This makes it easy for Javascript to look at the specific values of fields (and, at their option dynamically tweak them) in a consistent and predictable manner. To further leverage this capability, there are two additional features in the "page script" editor:
<input type="hidden" name="campaigncode" value="@@campaigncode" />
Notice the ability to use @@ variables to substitute any data that you've already collected or assigned to the respondent at the time which the form is rendered.