javascript – redirect to another page after filling out the required field and stay in the same page once not fill out

Question

I am currently using the embedded form from Mailchimp. I would like to redirect the form to my thank you page once the form has been filled out, but it is still proceeding to another page even the email field is empty. I put the onClick on my submit button. Can you help me?

Here’s my code:

<!-- Begin Mailchimp Signup Form -->

#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */

#mc-embedded-subscribe-form input[type=checkbox]{display: inline; width: auto;margin-right: 10px;}
#mergeRow-gdpr {margin-top: 20px;}
#mergeRow-gdpr fieldset label {font-weight: normal;}
#mc-embedded-subscribe-form .mc_fieldset{border:none;min-height: 0px;padding-bottom:0px;}

Subscribe

* indicates required

Email Address *

Name

Marketing Permissions

Please select all the ways you would like to hear from Beyond Red Wave Arts, LLC:

Yes, I would like to receive future updates about DELPHYQ.

(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]=’EMAIL’;ftypes[0]=’email’;fnames[1]=’FNAME’;ftypes[1]=’text’;fnames[2]=’LNAME’;ftypes[2]=’text’;fnames[3]=’MMERGE3′;ftypes[3]=’text’;}(jQuery));var $mcj = jQuery.noConflict(true);

Thank you in advance.

0
Cat 2 weeks 2021-04-27T23:32:11-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse