The one feature that Wordpress doesn’t provide that many businesses request is a contact form. There’s many plugins out there (I used to use cforms2), but for something as simple as this you don’t need to use a plugin.
- Open up Google Docs and click New > Form.
- Fill out all the questions you want. A typical contact form might just include Name, Email, Message.
- Go back to the spreadsheet and click Share > Set Notification Rules. Check “email me when someone submits a form” and “email me right away”
- (Option 1) If you like Google’s default form design, click “Embed” and copy the code it provides (an iframe).
- (Option 2) If you would like to customize the design of the form, go to the spreadsheet and click Form > View Live Form. Right click on the page, press “View Source,” and copy the code: <form> … </form>.
- (Simple option). Go to Wordpress, edit your Contact Page, switch to HTML view and paste the code. This will add the form to your page.
- (More difficult option) If you’re a developer and don’t want clients messing with the form’s code, create a page template, include the code in there, and then set the contact page to that page template.
- If you chose Option 2 above, you can now use CSS to style the form to match your site.
Here’s an example of the form in action: http://2010.bilconference.com I just used the iframe because I didn’t need to change the look of the form.
Additional feature – If you’d like to share the responses on your site (like the BIL Attendees page), just:
- Create a new sheet on the spreadsheet (at the bottom, “Add Sheet”).
- Label the columns you’d like to include at the top.
- Under the first column, type “=” then switch to the previous sheet and select the first column’s contents. Press Enter. This should give you a formula the duplicates the content (something like =Sheet1!A2). Repeat for each column you’d like to share.
- Select all the cells of the first row of data, hover over the bottom right corner, click the square and drag down. This will repeat the formula across the lower cells.
- Click “Share > Publish as a Web Page.” Under Sheets to Publish select “Sheet 2″, and click “Start Publishing”.
- Under Get a link to the published data, select “HTML to embed in a page” and copy the code.
- Open Wordpress and paste the code in the page you’d like to share it on.
Bill Erickson is a WordPress Consultant who builds custom websites using WordPress as a CMS and Thesis as a framework. He’s a cofounder and resident of The Creative Space, and a cofounder of the BIL Conference (the open analog to the TED Conference).


{ 3 comments… read them below or add one }
genius!
This is nice, but I'm curious how you handle the "thank you" message or the redirect AFTER the form is submitted?? Any ideas on how to keep the visitor on MY site rather than Google's crummy "thank you" page?
If you embed the form like I've done here ( http://www.billerickson.net/index.php/wordpress-c... ) then they never leave your site. You can edit what's shown after they submit the form by editing your Google form and going to More Actions > Edit Confirmation.
Now there's no way to do an auto-response email, and the email you get just says "Your form has been edited, click here to view changes" – it doesn't show the actual information the person entered until you click through. It's not a perfect solution, but it's a quick and easy one. If you want a more custom option, I'd say go with cforms2.