Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
MailChimp Submit Button spinner

I have added a Fontawesom spinner to the Mailchimp Submit Button and it works fine.

function addFaIcon(){
  var i = document.createElement('i');
  i.className = 'fa fa-circle-o-notch fa-spin';
  i.style= '.buttonload {background-color: transparent;border: none;color: white;padding: 12px 24px;font-size: 16px;} ';
  var FNAME_empt = document.forms["mc-embedded-subscribe-form"]["FNAME"].value;
  var EMAIL_empt = document.forms["mc-embedded-subscribe-form"]["EMAIL"].value;
  var MMERGE6_empt = document.forms["mc-embedded-subscribe-form"]["MMERGE6"].value;
  if($('#mce-success-response').css('display') === 'none' && FNAME_empt != "" && EMAIL_empt != "" && MMERGE6_empt != ""){
    document.getElementById('mc-embedded-subscribe').appendChild(i);
  }
}

The problem is this spinner will be added to the submit button even if the Email field is not correct and doesn't have '@' or '.com'. So, How can i add a condition for this Email field to work the correct way?

Also, Mailchimp will add an Inline error message if the field isn't correct :

<div for="mce-EMAIL" class="mce_inline_error" style="display: block;">This field is required.</div>

Can i use this line of code for my Issue?

Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!