Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem. Is there no form validation for this plugin?

    I’m using the widget part of this plugin and can’t find any settings to turn on to make the fields validate, either.

    Instead, I’m using the https://jqueryvalidation.org plugin (which is already enqueued in my theme) and adding the necessary classes to my fields manually via javascript. Putting the following in my theme’s scripts.js file, where the on page load scripts fire, solved the problem:

    $('#constant-contact-signup input[type="text"]').addClass('required');
    $('#constant-contact-signup input[type="text"]#cc_email').addClass('email');
    $('form').validate();

    Of course, this approach can get messy if you have more than one sign-up form on each page, since everything is marked by ID’s. But, unless there is some sort of baked in validation (which, this is not the first or only support forum post with this question) this workaround should get the job done.

    Thanks jsoloway. Very helpful. Thank goodness for JQuery.

    Though I think the developers should have included simple form validation. The “Official WordPress Plugin” plugin? Really?

    I ended up using a much more slimmed down plugin:
    https://www.ads-software.com/plugins/constant-contact-widget/
    Not all the robust list features, but validates and seems to execute after submission faster.

    A lot of the other CC plugins seemed to be using IFrame solutions and were more difficult to style like I wanted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widget says success even without email’ is closed to new replies.