Add Contact Us form in specific pages in Blogger
Do you want to add contact us form in your blogspot blog? These contact form us can help you to get feedback of your audience, contact us form can also be used to get your customers feedback. Or if you are smart enough, you can use these contact us forms to get more customers. For example, You can create a hire us page where you can put a form which will help you new customers to contact you directly.
Well, now let me tell you guys that how you can easily add a contact us form to your blog. To install a contact us form in your blog, follow my step by step tips:
First go to Blogger>>Your Blog>>Pages>>New Page as shown below, then go to HTML section and add the below given code in the description area as shown below:
[php]<script>
var blogId = ‘Your-Blog-ID’;//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>[/php]
Now it’s time to add your blog’s id in the form, for this replace “Your-Blog-ID” with your original blog id as shown below:
Final Words
Now you will receive all the feedback, requests and customers’ demands on your Gmail ID on which you have your blogger account. If you have any further queries then please let me know in comments.
Related Posts
-
5 Most Popular bloggers in Pakistan
42 Comments | May 20, 2015 -
Forum Plugins: 5 Awesome WordPress Plugins for Forums
6 Comments | Apr 6, 2015 -
6 Cool WordPress Plugins for Facebook
4 Comments | Mar 26, 2015 -
Top 5 Buysellads (BSA) Alternatives
19 Comments | Oct 29, 2014
About The Author
Hasnain Haider Abbas
Hasnain Haider Abbas is a 25 years old web entrepreneur and founder of Articlesteller.com. In the early stage of his life, he fell in love with technology, His expertise is in SEO, Content writing, Social Media, Affiliate Marketing, Web development, and Business promotion.
Really inspired by you. And i also want to become a blogger and i want to work on my own website. Can you give me some TIPS.q
As Salam Alliuku. It’s nice to see that you found that article helpful. If you are willing to buy your own domain, then do first keyword research in the niche you are going to choose and then buy a relevant domain with the keyword.
Thanks mate, you just need to publish quality content and build links. Do not try to compete for highly competitive niches.