• Resolved genuinesmile29

    (@genuinesmile29)


    I have a Mailchimp list with email address, first name, and last name fields. All three have been marked as required in the MC list settings page. When I connect with the plugin via the API key, my list is pulled in and all three fields are marked with asterisks to show that they are required. When I add the inputs to my plugin’s form I make sure that the ‘Required field?’ checkbox is checked.

    When using the form, only the email field throws an error if it is not filled out (“Please fill out this field.”). Once I fill out an email I am able to submit the form without completing the first name or last name fields. After the subscription has been confirmed, I look at my list in mailchimp and see the new subscriber with the email address they entered and for the first name and last name fields the placeholder values I gave to the text fields have been passed through (“Your first name test” and “Your last name test”). Why is the plugin thinking the placeholder text is user entered?

    Website here: http://ecovillagecharlottesville.org/

    https://wordpress.org/plugins/mailchimp-for-wp/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    I just took a close look and found the culprit.

    Your theme is including a JavaScript file which applies some wierd “placeholder” like functionality for browsers that do not support the placeholder attribute. Strange thing is, it also does this for browsers that DO support the placeholder attribute.

    Upon submitting the form, the script will take a placeholder value and set it as the field value. That is also why the required attributes do not work.

    I would contact your theme author and tell him/her the above. The placeholder functionality is in /mn-flow/assets/dist/concat.min.js and should take HTML5 browsers into account.

    Hope that helps!

    Thread Starter genuinesmile29

    (@genuinesmile29)

    Thank you for your dedication Danny! Love this plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form placeholder text being passed through on subscription’ is closed to new replies.