Closed (fixed)
Project:
ActiveCampaign
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Dec 2022 at 11:05 UTC
Updated:
28 Dec 2025 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dtfabio commentedHi pollegie,
It is not yet possible at the moment to subscribe a user to a specific list, the webformhandler just sends the data through to Active Campaing.
To forward fields other than email, first name and last name, custom yaml mapping can be used.
This yaml mapping does not allow you to pass your own parameters to the api.
I will change the sentence "Edit the form data that will be sent to the ActiveCampaign site when a webform submission is made" to "To send additional fields other than the three basic fields provided, the custom yaml mapping can be used." in the description of the custom yaml field, because that may have caused the confusion.
We are, however, looking internally at providing this functionality in the new version of Active campaign, along with other features to give more flexibiliteit to users of the module.
I hope this answers your question?
Greetings,
Fabio
Comment #3
pollegie commentedHi dtfabio,
that answers it for now. I would love to see this function in an upcoming version.
Thanks for the answer!
Comment #4
dtfabio commentedYou're welcome pollegie,
I'm glad my explanation helped.
I'm adjusting the ticket description a bit so that this can be included as one of the 2.x roadmap tickets as a feature request.
This will also keep you informed once the feature is added to the module.
Greetings,
Fabio
Comment #5
elamanFor those who are looking for a solution, you are welcome in testing this module: https://www.drupal.org/project/simple_activecampaign
Comment #6
cmarrufo commentedHello, attached patch here that provides this functionality. With this patch, a user can subscribe to a specific list, which is configured through the ActiveCampaignFormHandler in the activecampaign_webform submodule.
To explain this in more detail, to do this, you must add the Active Campaign handler to your webform. Once added, you'll see a new checkbox field. If you select it, a dropdown list will appear with your Active Campaign platform's lists. Here are some screenshots:
- Checkbox unchecked:

- Checkbox checked, showing select list:

Testing with temp mail
Test email: dadaci5185@amgens.com
- User doesn't exist.

- Filling out the form

- User created and subscribed to correct list.

Comment #7
sebastiendaled-rosseel commentedComment #8
pollegie commentedI use patch #6 a few weeks now, and works like a charm!
Comment #9
cmarrufo commentedHi @pollegie I'm glad to hear that; I'll mark this issue as reviewed. Thank you very much!.
Comment #11
dtfabio commentedComment #13
dtfabio commentedTested activecampaign module versions:
I tested the change on two clean Drupal instances, versions 10.5.8 and 11.2.10, both on PHP 8.3.
I also tested it on one of our existing projects that uses ActiveCampaign Core version 10.4.9 and PHP 8.1, and it works without any problems on all sites.
Users are also correctly registered in the designated list.
The MR pipelines are also green, so I will merge this into the 2.x branch and cherry pick it to the 1.x branch.
I will work through the tickets where patches have been submitted to see if they can also be merged, then create a new release with these changes.
Comment #16
dtfabio commentedMerged in 2.x and cherry picked on to the 1.x branch.
Thank you for providing this @cmarrufo. :)
Comment #18
dtfabio commented