RSForm!Pro integration
Description
If you use RSForm!Pro on your website, you can integrate AcyMailing with it so that when a user submits a form, this user is also subscribed to one or several AcyMailing Lists.
Integrate using PHP code
You can configure RSForm!Pro to execute a php script to subscribe the user in AcyMailing. First of all, edit your form and go in the PHP Scripts section:

The script should go in the Script called after form has been processed area to ensure the user isn't subscribed if an error occurs on the form:

You can use this script as a base, and modify it to meet your needs:
In this code, CUSTOM_FIELD_ID is the ID that can be seen in the Acy custom fields listing.
EMAIL_FIELD, NAME_FIELD and MY_FIELD must be replaced by your form's field names, so in this example it would be "Email", "the user name" and "Our newsletters field name":

Let users choose their subscription
You can add a Radio Group field or a Checkbox Group field to let users choose their subscription. Here are some examples:
Use a Radio Group field as a Yes/No subscription field

Use a Checkbox field to choose the lists individually

Last updated