title: Does anyone know why my this code is not running? When I click the submit button it does nothing?If anyone might have an idea?
body: <p>When I click the send button of my contact form nothing happens on blogger</p>
  <p>Anyone can help? it would be a great help?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
    &lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
      &lt;br /&gt;&lt;/div&gt;
    &lt;script&gt;
      var blogId = '#';
      //The below message 5 Strings can also be edited
      var contactFormMessageSendingMsg = 'Sending...';
      var contactFormMessageSentMsg = 'Your message has been sent.';
      var contactFormMessageNotSentMsg = 'Message could not be sent. Please try again later.';
      var contactFormEmptyMessageMsg = 'Message field cannot be empty.';
      var contactFormInvalidEmailMsg = 'A valid email is required.'
  
      var widgetLoaded = false;
  
      function sendEmailMsg() {
        if (widgetLoaded == false) {
          _WidgetManager._RegisterWidget('_ContactFormView', new _WidgetInfo('ContactForm1', 'sidebar',
            null, document.getElementById('ContactForm1'), {
              'contactFormMessageSendingMsg': contactFormMessageSendingMsg,
              'contactFormMessageSentMsg': contactFormMessageSentMsg,
              'contactFormMessageNotSentMsg': contactFormMessageNotSentMsg,
              'contactFormInvalidEmailMsg': contactFormInvalidEmailMsg,
              'contactFormEmptyMessageMsg': contactFormEmptyMessageMsg,
              'title': 'Contact Form',
              'blogId': blogId,
              'contactFormNameMsg': 'Name',
              'contactFormEmailMsg': 'Email',
              'contactFormMessageMsg': 'Message',
              'contactFormSendMsg': 'Send',
              'submitUrl': 'https://www.blogger.com/contact-form.do'
            }, 'displayModeFull'));
          widgetLoaded = true;
          document.getElementById('ContactForm1_contact-form-submit').click();
        }
        return true;
      }
    &lt;/script&gt;
  
  
    &lt;br /&gt;
    &lt;form name="contact-form"&gt;
      &lt;div&gt;
        Your Name : &lt;/div&gt;
      &lt;input class="contact-form-name" id="ContactForm1_contact-form-name" name="name" size="30" type="text" value="" /&gt;
  
      &lt;br /&gt;
      &lt;div&gt;
        Your Email: &lt;em&gt;(required)&lt;/em&gt;&lt;/div&gt;
      &lt;input class="contact-form-email" id="ContactForm1_contact-form-email" name="email" size="30" type="text" value="" /&gt;
  
      &lt;br /&gt;
      &lt;div&gt;
        Your Message: &lt;em&gt;(required)&lt;/em&gt;&lt;/div&gt;
      &lt;textarea class="contact-form-email-message" id="ContactForm1_contact-form-email-message" name="email-message" rows="5"&gt;&lt;/textarea&gt; By creating an account you agree to our &lt;a href="https://notifyhands.blogspot.com/p/terms- 
                      and-conditions-last-updated-july.html"&gt;Terms &amp;amp; Conditions&lt;/a&gt;.&lt;br /&gt;
      &lt;input class="contact-form-button contact-form-button-submit" id="ContactForm1_contact-form- 
                      submit" onclick="sendEmailMsg()" type="submit" value="Send" /&gt;
  
      &lt;br /&gt;
      &lt;div style="max-width: 450px; text-align: center; width: 100%;"&gt;
        &lt;div class="contact-form-error-message" id="ContactForm1_contact-form-error-message"&gt;
        &lt;/div&gt;
        &lt;div class="contact-form-success-message" id="ContactForm1_contact-form-success-message"&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
    &lt;/form&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>