Support » Plugin: MC4WP: Mailchimp for WordPress » Additional hidden field not working

  • Resolved anettles

    (@anettles)


    According to the MC4WP knowledge base (https://kb.mc4wp.com/add-sign-checkbox-custom-form/):

    The plugin will automatically extract an email and name field out of the form. Should you want to send additional data to MailChimp, you can prefix the name attribute with mc4wp-. For example, if you want to send an additional field called WEBSITE to MailChimp, use the following HTML.

    <label>Website:</label>
    <input type=”url” name=”mc4wp-WEBSITE” placeholder=”Your website..” />

    Our site offers a free e-book in exchange for email list opt-in. I want to track who opted-in for the e-book.

    I added a text field to my MC list called “SUFAW” (MERGE6) and added this to the opt-in form:

    <input type=”hidden” name=”mc4wp-MERGE6″ id=”MERGE6″ value=”Y”>

    When the form is submitted, Name and Email are entered into the contact record but no value for SUFAW / MERGE6 gets entered. I also tried this:

    <input type=”hidden” name=”SUFAW” id=”MERGE6″ value=”Y”>

    but it didn’t work either. Here is the entire form:

    <div style=”text-align: center;”>
    Have a copy of my new e-book<br />
    <h3 style=”font-weight: bold; font-size: 1.25em; line-height: 2.25em; margin: 0;”>”Setting Up for a Win”</h3>
    on me!<br />
    <input type=”hidden” name=”mc4wp-subscribe” value=”1″ />
    <input type=”hidden” name=”mc4wp-MERGE6″ id=”MERGE6″ value=”Y”>
    <input type=”text” name=”FNAME” placeholder=”First Name” required>
    <input type=”email” name=”EMAIL” placeholder=”Best Email” required>
    <input type=”submit” value=”Get my book!”>
    <p>We will never, EVER, give your email to any 3rd party unless required by law.</p>
    </div>

    Messages, errors, etc. – none, just no data sent
    MailChimp for WordPress version – 4.3.3
    WordPress version – 5.0.3
    PHP version – 7.1

    • This topic was modified 1 year, 2 months ago by anettles.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Additional hidden field not working’ is closed to new replies.