Knowledge Base/Knowledge Base/Sign Up Forms

Can I Use My Own Form?

AWeber - Matt H
posted this on July 26, 2012 03:27 PM

We strongly recommend the use of our "Sign Up Form Generator" to create the form you publish to your website because:

It is the easiest way to integrate AWeber with your website
It is most likely to work without error

For these reasons, barring any exceptional circumstance, you should use the "Sign Up Form Generator" to create a form and provide the HTML to copy and paste to your website.

If there are design adjustments you'd like to make to the form to better fit the page you're publishing it to, when getting the HTML for your form, choose the "Raw HTML Version" available so you can make changes in your web design application much like you would any aspect of the design of your page.

Note: You can also uncheck the Include beautiful form styles box when you are getting the HTML of the form in order to just work with a basic, unformatted form to start.

KB0396_step01.png

If despite these reasons you wish to create your own form without the "Sign Up Form Generator", use the following criteria when designing it:

The form's action must be set to "http://www.aweber.com/scripts/addlead.pl". For example:

 <form method="post" action="http://www.aweber.com/scripts/addlead.pl"> 


The name field visible to your subscribers should have "name" set as the "name" attribute. For example:

<input type="text" name="name" value="" />


The email field visible to your subscribers should have "email" set as the "name" attribute. For example:

<input type="text" name="email" value="" />


If you'd like to add any custom fields, they must first be setup in your AWeber account. You will then add them as fields with the name set to custom [Your Custom Field Name]. For example, a custom field of "Color" would use the following input:

<input type="text" name="custom Color" value="" />


Below is a guide of some of the hidden fields your form might contain. Fields marked Optional may be ommitted, while all others are required.

Name Value
listname The name of the list the form will add subscribers to
redirect The valid URL of the page you'd like subscribers to be sent to once their information is successfully submitted to our servers.
meta_adtracking The ad tracking value you'd like assigned to subscribers who use this form (Optional)
meta_message The Follow Up message subscribers will first receive when signing up to the list. In almost all cases, this is set to 1.
meta_required The name of any fields, separated by commas, you wish to be required and validated before a form submissions is accepted. The default value is email.
meta_forward_vars If set to 1, all of the fields submitted to add a subscriber to your list will also be forwarded to the redirect/thank you page using the GET method (Optional)


Here is an example form with default values set. It would work out of the box if it were assigned a real list name and redirect URL.

<form method="post" action="http://www.aweber.com/scripts/addlead.pl ">
<input type="hidden" name="listname" value="[your listname here]" />
<input type="hidden" name="redirect" value="http://www.example.com/thankyou.htm" />
<input type="hidden" name="meta_adtracking" value="custom form" />
<input type="hidden" name="meta_message" value="1" /> 
<input type="hidden" name="meta_required" value="name,email" /> 
<input type="hidden" name="meta_forward_vars" value="1" /> 
<input type="text" name="name" value="" /> Name 
<input type="text" name="email" value="" /> Email
<input type="text" name="custom Color" value="" /> Custom Field 
<input type="submit" name="submit" value="Subscribe" />
</form>
 
Topic is closed for comments