Extensions‎ > ‎

DNN AWeber

Preliminary note

AWeber's API is a REST-based API that allows developers to construct their own applications for displaying and managing AWeber customer accounts. If you need to create an app on Aweber you need to access https://labs.aweber.com/apps.

The next step is to create a new list on www.aweber.com then you have to proceed with the configuration of the form.

As an info note, along with the installation of the add on, a aweber.config file will be installed on \DesktopModules\AvatarSoft\ActionForm\Config\Actions where the parameters of the aweber app are defined, the AppId, ConsumerKey, ConsumerSecret.   

Subscribe to AWeber

The Subscribe to AWeber predefined form allows you to quickly and easily add a signup form on your site for your AWeber list. This form subscribes an email address to an AWeber list along with Name and Email.

In order to get started with this form, from the Modules drop-down menu select Add New Module. Add Action Form to your page and click on Manage Form. From the list of templates, pick Subscribe to AWeber.

The Name and Email fields are provided by default. You can click on Name and Email and set them as Required. The form can’t be sent without this info, but this way a message will appear informing the user that these fields are mandatory.

Say you have other fields in your AWeber list, like Alias, Mobile Phone, and Address. Create these fields in your form as follows.

Add the fields by going to Add Field and selecting Text, then Text Box. In our case, the first field will be called Alias. For the rest, repeat this step: Text > Text Box, then name them Mobile Phone and Address, respectively.

Next, click on Add Field, then Buttons, and from there Button. Name it Submit, for example. Scroll down to On Click Handler and select Add Action. Set the first action as Subscribe to AWeber.

This action must be configured as follows: in the List Name or Id field fill in the AWeber list name (or Id) you want attached.

In List Data add the custom fields from your AWeber list – in our case, Alias, Mobile Phone, Address.  The Action Form Field Id is [Alias], [Mobile Phone], [Address].

This way, the AWeber list will be populated with the information provided in the respective fields. Note that every List Data field must have an equivalent in the AWeber list. Otherwise it doesn’t work, because the info provided in the form fields can’t be sent to a list that doesn’t contain those fields itself.

Add another action to the Button, namely Display Message. Here you can set the message you want to be displayed when the Submit button is pressed. For example, Succes!

After pressing Submit, the list is populated with the entries.

Unsubscribe from AWeber

In order to unsubscribe from AWeber, open the Modules drop-down menu and select Add New Module. Choose Action Form, then click on Manage Form. 

From the templates list select Unsubscribe from AWeber – this template comes with 2 pre-defined fields, namely Email and an Unsubscribe button. 

Click on Email, and in UI Settings configure the Additional CSS style. This way you can control how much of the page this field occupies. In our example, the value is max-width: 240px; . This field should also be set as Required.

Click on the Unsubscribe button and scroll down to On Click Handler. Click on it and then on Add Action. From here, choose Email, then Unsubscribe from AWeber. Click on this handler, and in the List Id field add the name or Id of the AWeber list from which you wish to unsubscribe. This list can be found in AWeber, List Options.

Next up, click on Add Action again, then Message and Display Message. In the Message field write whatever it is that you want to read when the client clicks on the Unsubscribe button. For example, You have successfully un-subscribed from our mailing list! 

Lastly, the fields' size and position can be modified through Layout Mode.