Support » Fixing WordPress » Display response from form submit (Mailchimp) in a modal

  • How can I display the response of a MailChimp form submit in a modal box instead of redirecting?

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

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m assuming you are hosting the form and it gets submitted to MailChimp, so your “redirect” is actually a new request sent to MailChimp. Thus the user has left your site for MailChimp.

    To keep the user on your site, have JavaScript/jQuery submit the form, preventing the submit button action from executing and instead submitting the same data via script. Script can then capture the response from MailChimp and insert it into a container on the page intended for this purpose, which gets displayed as a modal once the complete response from MailChimp is received.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.