Akubo Tip: Creating an email subscription form

One way to gain recipients for your newsletters is to have an email subscription form on your website. With Akubo, you can create a subscription form, and the sign-ups will be automatically saved to your Akubo database.

Here is the code that you can put in a text widget on your website (this code will also work for websites that don’t use WordPress).

<form action=”http://www.akubocrm.com/auto_form.php?action=2″ method=”POST” onsubmit=”if (email.value == ”) return false; alert(‘Thank you for signing-up for our email newsletters.‘)”>

<input type=”text” name=”first” placeholder=”Enter First Name”>

<input type=”text” name=”last” placeholder=”Enter Last Name”>

<input type=”email” name=”email” placeholder=” Enter Email Address” style=”font-size: 11px; background-color: #E6DFD5; width: 120px” />

<input style=”background-color: #ECCC67; color: #FFFFFF” type=”submit” value=”Sign Up“/>

<input name=”oid” type=”hidden” value=”enter your OID here” />

<input name=”url_success” type=”hidden” value=”website address to go for success sign-up” />

<input name=”group” type=”hidden” value=”Website Email Sign-up” />

</form>

It checks if there is a value on the email field, and after subscribing, a confirmation window will pop up. You can customize the style and text on the confirmation window.

For the above sample, the confirmation text is Thank you for signing-up for our email newsletters, while the text for the submit buttons is simply Sign-up.

It is also necessary to include the OID in the code. An OID identifies your Akubo account and is displayed in the Auto-Forms section in the Settings page.

First, you have to enable Auto-Forms.

email-subscription-form-screenshots

Copy your OID value, then find the OID line in the previous code and place it.

<input name=”oid” type=”hidden” value=”enter your OID here” />

The url_success tag will have the URL of the page that will appear if the submission is successful.

<input name=”url_success” type=”hidden” value=”website address to go for success sign-up” />

The data gathered by this form will be stored in your Akubo database.

Leave a Reply

Your email address will not be published. Required fields are marked *