Support » Plugin: Contact Form 7 » Constant Contact Integration

  • Hi,

    in order to connect my Constant Contact newsletter tool, I followed the instructions from you here: https://contactform7.com/constant-contact-integration/
    and I was able to make the integration.

    Is there an example of a contact form that uses the integration to subscribe to my newsletter list? I am not sure how the actual contact form needs to be set up, e.g. what is the receiver address?

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    https://contactform7.com/constant-contact-integration/#contact-properties-mapping

    This section explains which field corresponds to which property. It says that the your-email field corresponds to the email_address property.

    Is there an example of a contact form

    I have a contact form which I have used for testing the Constant Contact module. Though it doesn’t look nice, if it’s no problem for you…

    <label> Your Name (required)
        [text* your-name] </label>
    
    <label> Your Email (required)
        [email* your-email] </label>
    
    <label> Subject
        [text your-subject] </label>
    
    <label> Your Message
        [textarea your-message] </label>
    
    <label> Your Job Title
        [text your-job-title] </label>
    
    <label> Your Company Name
        [text your-company-name] </label>
    
    <label> Your Birthday Month
        [text your-birthday-month] </label>
    
    <label> Your Birthday Day
        [text your-birthday-day] </label>
    
    <label> Your Anniversary
        [text your-anniversary] </label>
    
    <label> Your Phone Number
        [tel your-phone-number] </label>
    
    <label> Your Address Street
        [text your-address-street] </label>
    
    <label> Your Address City
        [text your-address-city] </label>
    
    <label> Your Address State
        [text your-address-state] </label>
    
    <label> Your Address Postal Code
        [text your-address-postal-code] </label>
    
    <label> Your Address Country
        [text your-address-country] </label>
    
    [acceptance your-consent optional consent_for:constant_contact]
    Add me to Constant Contact subscription list.
    [/acceptance]
    
    [submit "Send"]
    Thread Starter mykael

    (@mykael)

    Hi Takayuki,

    thanks for your message. What you’ve written I could read already here: https://contactform7.com/constant-contact-integration/.

    Let me ask differently:

    I have 5 contact forms and 2 e-mail subscriptions forms to constant contact on my website.

    How does CF7 know that it is an email subscription form and not a regular contact form?

    And how can I set up to which of my subscription lists in Constant Contact the subscription goes to?

    What recipient does a Constant Contact email subscription form need to have?

    Like:

    Form A -> regular email form, recipient e.g. info@xyz.com
    Form B -> email subscription to Constanct Contact list BBB
    Form B -> email subscription to Constanct Contact list CCC

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    How does CF7 know that it is an email subscription form and not a regular contact form?

    You need to code a filter function to do this.

    Or, use a trick using a hidden field for consent. Try adding this tag in somewhere in the form template of the regular contact forms:

    [hidden your-consent consent_for:constant_contact]

    And how can I set up to which of my subscription lists in Constant Contact the subscription goes to?

    This is not yet explained in docs, because it goes too complicated, but the current Constant Contact module has a method to set the list to which the contact will belong. WPCF7_ConstantContact_ContactPostRequest::add_list_membership() is the method name.

    Maybe I’ll post about it someday.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Constant Contact Integration’ is closed to new replies.