- Issue created by @dtfabio
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.
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.
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.
Add the code, make an MR and merge after testing.
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.
/
/