Connect For Campaign Add-on: Unable to validate the present of email address

  • Updated

Issue Description

EPiServer Forms is unable to submit user's email address to Campaign recipient list. Error: "Email is required".

Further investigation showed that ConnectForCampaign add-on failed to validate the present of email address within form submission.

Case 1: Recipient list's email field: 

Display name: Email
Internal name: email

=> Email address is transferred to Campaign recipient list.

Case 2: Recipient list's email field:

Display name: Email address
Internal name: email

=> Failed to validate the present of email address. Email address is not transferred to Campaign recipient list.

 

Workaround

Create a custom module named CustomRecipientService which overrides method UpsertRecipient in the original RecipientService class. The sample code is attached to this article.