Error on invalid email field when mapping the wrong field to the value

Created on 18 April 2025, 12 days ago

Problem/Motivation

When I had mapped the wrong field to my email field, it took a long time to realise that it was not because of the email format, but simply because I was actually passing the name and not the email value to the api.

It seems better that during saving, it is checked whether the mapped field value is effectively a type of email field so that it is immediately known that another field should be chosen, which will always forward data to Active Campaign.

Steps to reproduce

Install and enable the activecampaign and activecampaign_webform modules. Add an activecampaign webformhandler on a form and map a non email field to the email field for Active Campaign. After filling in the form and saving the following error appears in the logs.

Proposed resolution

Check on webformhandler save if the mapped value is an email field, show a warning to the user if this is not the case to change the mapped field value.

Remaining tasks

Add the code, make an MR and merge after testing.

User interface changes

When saving the webform users will see a message if the mapping was wrong that they need to choose a differend field, because this is not an email field.

API changes

/

Data model changes

/

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dtfabio Ninove

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024