• Resolved solisis

    (@solisis)


    I’m trying to get this to work with angular.js v1x and basically the submit button does nothing at all. no console errors, nothing in the network tab.

    Have you ever come across this kind of behavior using the plugin on an asynchronous site?

    The form loads, and it will trigger errors if you leave required fields empty (i think that’s just html5 required behavior), but that’s it.

    Any help is appreciated. I only have this on my local dev machine so I can’t provide a link

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

    (@lapzor)

    Can you share a link to the page with this issue?

    Did you use the shortcode or copy the code from the form builder?

    Thread Starter solisis

    (@solisis)

    No, it’s only on my local development machine. There’s no public URL.

    we’re using shortcode:
    <?php echo do_shortcode(‘[mc4wp_form]’); ?>

    Are you sure the plugin works with angular in general? I know the setup can be a thousand variations, but the theory is still the same. Fetch a wp page and parse out the contents of the main tag. I don’t know if the plugin enqueues a js library or something that wouldn’t be pulled in on an ajax load.

    Plugin Contributor Lap

    (@lapzor)

    I think the Angular issue is due to our forms not having a action attribute, but I didn’t test this recently.

    Can be fixed by adding add_filter( 'mc4wp_form_action', '__return_empty_string' ); to the theme’s functions.php (or a plugin file).

    Hope that helps. If you have any questions, please let us know!

    Plugin Contributor Lap

    (@lapzor)

    Since there have been no replies for awhile I will now mark this ticket as “resolved”. If you are still experiencing this issue or you have a similar problem, please create a NEW ticket. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Does Mailchimp for WP work with Angular.js’ is closed to new replies.