Saturday, July 28, 2018

How to add Contact Form in Blogger | Responsive Contact Form for blogger

How to add Contact Form in Blogger | Responsive Contact Form for blogger if you want to create a Contact page for website or want form HTML so it very difficult for a beginner of blogger so we just solve your this problem you just follow it.


How to add Contact Form in Blogger


Steps :





  • Got to blogger.com 
  • Sign in to your account with blogger.com
  • Goto Pages from the dashboard of blogger.


  • How to add Contact Form in Blogger


    • Then Create Page Contact Us.

    Responsive Contact Form for blogger

    • Type your Page Title 'Contact Us'.



    How to add Contact Form in Blogger


    • Type Heading 'Feel Free to Contact Us' this is only example for you.


    Responsive Contact Form for blogger

    How to add Contact Form in Blogger


    Responsive Contact Form for blogger

    • Now Just Copy this Code and paste it in your Contact Page Html Area. 

    
    
    <script>
    var blogId = '8694494030520005341';//this number should be mandatorily edited.
    //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;
    }
    </script>
    <form name='contact-form'>
    <div>Your Name : </div>
    <input class='contact-form-name' id='ContactForm1_contact-form-name' name='name' size='30' type='text' value=''/>
    <div>Your Email: <em>(required)</em></div>
    <input class='contact-form-email' id='ContactForm1_contact-form-email' name='email' size='30' type='text' value=''/>
    <div>Your Message: <em>(required)</em></div>
    <textarea class='contact-form-email-message' id='ContactForm1_contact-form-email-message' name='email-message' rows='5'></textarea>
    <p></p>
    <input class='contact-form-button contact-form-button-submit' id='ContactForm1_contact-form-submit' type='button' value='Send' onclick="sendEmailMsg()"/>
    <div style='text-align: center; max-width: 450px; width: 100%'>
    <p class='contact-form-error-message' id='ContactForm1_contact-form-error-message'></p>
    <p class='contact-form-success-message' id='ContactForm1_contact-form-success-message'></p>
    </div>
    </form>
    Responsive Contact Form for blogger

    How to add Contact Form in Blogger


    •  After Copy this code replace this red colored 'blog id' with your blog id in order to receive email message. 





    Responsive Contact Form for blogger


    Copy and edit the code snippet. Editing the blogId number is mandatory(Use the number which you noted down above).


    How to add Contact Form in Blogger


    • Before Publish Disable Comment on this page.

    Responsive Contact Form for blogger

    All Done.
     If You Have Any question Please Comment below.

    Thanks.


    How to add Contact Form in Blogger | Responsive Contact Form for blogger


    3 comments:

    1. hi bro reply zaroor krna merq contact waly page pr jo send button wala icon ha wo sahi ni a raha mera contact us wala page ye ha

      https://factsbybasharat.blogspot.com/p/contact-us.html

      ReplyDelete
      Replies
      1. bro apni Send button ke font ka size kam karo.
        Thanks for Commnet.

        Delete
      2. or code ko replace bhi kar ke check karo.

        Delete