How to create a web form to talk with Google Docs
My friend and co-worker Jenny from Three Kid Circus pointed out a cool feature of Google Docs to me today. I use Google Docs spreadsheets mostly as wiki-like documents for a group of people to edit a web page in table form. In other words I use them for layout of a web page, and maybe for sorting columns, and sharing fairly simple information.
In another conversation I had recently, Elisa Camahort was talking about wanting a simple widget sort of thing for party RSVPs, but that would be more than a link to her email address – it would be a form for people invited to fill out. So, it occurred to me that the form-constructing capability in Google Docs would do all the things she wanted.
As I thought further, I realized it also might be helpful to my friend Squid Rosenberg, who has a son whose educational plan is managed by a fairly large group of people, using Google Docs, tracking his progress and patterns with a daily record. Similar documents could be very useful for anyone tracking health care issues, for a team of caregivers for an elderly person, for example.
Since this is a fairly new and obscure feature, and somewhat of a convoluted process to click around to where you even understand what the feature does, I thought I’d describe how to set it up.
1) Go to Google Docs.
2) Create a spreadsheet and call it “My potluck dinner” or whatever.
3) Make columns for whatever you like — name, email, # of people you’re bringing, what kind of food you will bring to the potluck.
4) Click “share”.
5) Click “invite people to fill out a form”.
6) Click “Start editing your form”.
7) Click the Save button.
8) Click “Choose recipients”. (You don’t have to put in any actual recipients.)
9) Click “Embed”, in the upper left corner.
10) Copy the code and stick it in your blog
Each column in the spreadsheet shows up as a title and text input field in the form! You can also add new fields.
It looks like this:
From there you might have to twiddle the formatting to make it look halfway decent. It is not set up to look nice in a blog sidebar, but it looks just fine in posts or pages in TypePad, and Blogger. It doesn’t work in LiveJournal or WordPress because it uses iframes, though in WordPress you can install a widget to get iframes to work.
The resulting input into the spreadsheet looks like this:
(click image to see it bigger)
Note the timestamp, automatically added!
So, this could be useful for many purposes. My potluck dinner example is frivolous, but anyone who’s suffered through the annoying interface of the spreadsheets on Google Docs, or who uses them for individual or group data entry, could set up extremely easy web forms with this hidden-away feature.
I would like to send a polite nudge to the Docs development team to uncover the forms feature! It would be very nice if it were an option to click directly from the spreadsheet or other document.