• Resolved emcelroy

    (@emcelroy)


    Hi. We’ve been using the plugin for about a month and a half and it worked beautifully up until a few days ago. Seemingly all of a sudden it started considering certain fields as required even though they aren’t and never have been set as required in our MailChimp list.

    The fields in question are the mailing address fields (address, city, state, ZIP, country). We only collect that information for subscribers who also want to receive a print newsletter.

    I first noticed this after adding some unrelated fields to the form three days ago. I’ve since removed those new fields in an attempt to revert back to the original, working version of the form, but it didn’t help.

    I’ve tried the following multiple times with no effect:

    1) Clicking the “Renew MailChimp lists” button

    2) Uninstalling and reinstalling the plugin

    3) Checking if any of our custom JS is interfering with the plugin. I don’t think it is.

    I have a local version of the website on my laptop where the plugin behaves correctly. It only requires that the email address field is completed.

    Can you please take a look (https://concord.org/subscribe) and let me know if you see what the problem might be? Thank you.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Could you share a screenshot of your MailChimp.com list settings where we can see the fields not being required?

    Thank you!

    Thread Starter emcelroy

    (@emcelroy)

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    I checked your form code and saw that few fields such as “Last Name” is marked as required. Please check the screenshot at https://www.dropbox.com/s/bqchduhj7tej7mp/Screenshot%202017-10-19%2011.10.18.png?dl=0.

    Please go to “MailChimp for WP > Forms” and make sure the word “required” is not added to any form fields except the “Email Address” field.

    I hope that resolves the issue. Let us know if you require any further assistance.

    Thread Starter emcelroy

    (@emcelroy)

    Sorry, but that’s not quite right. The required attribute is only added to those fields dynamically by javascript when the “Send me the @concord newsletter by snail mail” option is selected by the user. I’ve just double checked to make sure that’s the case and it is.

    By default, only the email address field has a required attribute. Here’s a screen shot of the form code on the MailChimp for WP > Forms page: https://staff.concord.org/~emcelroy/fields.png

    There is no required attribute for the first or last names fields appearing there, nor do they have a required attribute when you initially load our public subscribe page. The same is true of the address fields — no required attribute is present by default.

    I tried removing the javascript that dynamically adds the required attribute to the name and address fields to see if that was somehow causing the problem, but removing it has no effect on this problem. The form still considers the mailing address fields as required.

    Notice too in the screen shot how the mailing address items in the “Choose a field to add to the form” are marked with red asterisks. As I understand it, this means the plugin thinks those fields are required. Is that correct? In my local copy of the site where the form works as expected, those items are _not_ marked with a red asterisk.

    justynabartoszewska

    (@justynabartoszewska)

    HI, i have exacly the same problem, but i need required feelds. Everything works ok, and suddenly is not. Please help.

    Thread Starter emcelroy

    (@emcelroy)

    For the record, we’ve uninstalled the MailChimp for WordPress plugin and replaced it with our own custom option. So the form at the URL mentioned above works correctly now, but not because we figured out the problem with the plugin form.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fields incorrectly considered required’ is closed to new replies.