Although Apple recently introduced a number of enhancements to their iWeb application included in iLife 09, it did not include form creation capabilities that allows users to supply data or communicate with website owners.
To help us with this problem we can use tools provided by other parties to include forms and store the data that is entered into our iWeb sites. In one of our previous articles we explained how to add forms to iWeb pages using Google Docs and Sprout. Unfortunately, Sprout has moved from a Free service and now requires users to pay for their services. But we can still get the results by tweaking Google Forms on their own.
Create a Form in Google Docs
As described in our previous article, we’ll first need to create the form in Google Docs. After we’ve created the form, we’ll want to publish it so that we can get the import details and include them in our iWeb site.
After the Form is published, visit the live form.

Once the live form loads we’ll need to get the main html code behind its structure so that we can include it on our iWeb Site. Right click (control+click) the white area and select View Source.

In the Window that opens we’ll need to copy the portion of the html code that starts with form tag and ends with the closed form tag.

Now that we’ve copied the html code that we want to work with, open iWeb to include it on your site.
Add to iWeb and Customize
To add the form to your iWeb site, select the page you’d like to include the form on and then select HTML snippet. Position the snippet on the page and paste into the area the code from the Google Form. Click Apply to save the code to the snippet and you’ll see the form now included on your iWeb Page.
Now that we’ve included the form code our your site you may want to customize it more so that it fits with the theme you’ve selected. To do this you’ll need to take advantage of CSS. CSS is the coding language that websites use to apply color and design to their html code. To learn more about it and how to use it to customize your forms please visit w3schools for free guides and tutorials.
As an example of some of the things you can do with CSS to customize your form, the details below show how to add CSS code to your HTML snippet that will change the look of your form.
First you’ll need to include the Internal Style Sheet CSS code to the html snippet. Add opening and closing style tags before the form html code.

For this example we’ll change the field label text to red. The form we created has marked the Name and Comment fields on our form as labels of the class ss-q-title. To modify the look of this class we need to call it in-between the style tags and identify how we want it to look.
Enter .ss-q-title {color:red} between the open and close style tags.
Press Apply and the field labels color will change to red on your form. This is just a quick example of modifications you can make with CSS to the Google Form you’ve embedded on your iWeb site.

Once you’re comfortable with how your form looks save and publish the page to your site. Your users will be able to enter details into the form and save it to your Google Docs spreadsheet where you can access the data for your own review.
Conclusion
With HTML Snippets iWeb allows you to do a lot more with your website. It does take knowing a bit of html and css code but there are plenty of free resources to help you with the basics. Please share with us here at Maciverse the interesting ways you’ve been able to modify forms for your iWeb site.
Related posts:
- Add Games to your iWeb Site
- iWeb Templates
- iWeb Help
- iWeb Hosting
- Create Free MP3s With Google Music Search








[...] Create and Customize Forms in iWeb [...]
I went through the process described above; however, I am wanting the form to (after the information is sent) redirect to my own created confirmation page. Specifically, people will come the the form page, fill in their information, and then be sent to a confirmation page where they can download the information they want. Is this possible using the Google docs method? If so, how do you make those changes so that the default Google confirmation does not pop-up? Thank you for your help!
Shari – The only way I know to bypass their own custom confirmation page is through using a javascript onclick redirect that is timed to allow for the form contents to get sent to google but then redirect to the page you specify. Its not a direct science but if you play with it you can get it to work.
Try this site out for more details: http://www.morningcopy.com.au/news/how-to-style-google-forms/
Thanks for the info! I had a question, is there an html code to add or fix so that when they hit submit it goes to particular e-mail address?
sending the contents as an email by just pushing submit requires a server that has the ability to send emails. If you’re using mobileme this isn’t currently an option. If you host it on another site you can probably use a javascript or php function to help you send forms as emails… http://www.javascript-coder.com/html-form/html-form-email.phtml
Thanks for the tips. I have my form laid out and uploaded to my domain using iWeb09. The problem is that the form stops immediately after the last and abandons the submit/resubmit buttons.
Have you seen this before?
Thanks,
Pete
Pete – Are you sure the “html snippet” window is large enough to display the entire frame. If the snippet is too small it will only display part of the form.
Hi Dan,
That’s exactly what it was. If you click the Apply button after writing the code, the bounding box tightens right up against the bottom of the form. I had to select the form afterwards and manually drag the bottom edge down – and NOT hit apply again. Small bug…
Things are working perfectly now, thanks!
Pete
Has anyone tried to use Jotform.com to create the form and then add to the HTML widget?
[...] Create and Customize Forms in iWeb [...]
Great tutorial. Thanks for the link!
If anyone wants to add form validation and email verification to their Google or iWeb forms please check out my new tutorial: http://www.morningcopy.com.au/news/google-forms-and-jquery-validation/
I am looking to add an ‘availability’ or ‘Bookings’ calendar to my site where a visitor can hover over a button for a booking period and see whether that particular booking has been confirmed. So the default is that one colour button denotes ‘available’ a second colour denotes ‘booked and not confirmed’ or ‘booked and confirmed’. It could be simplified so that there are three colours. One for ‘available’, one for ‘booked and confirmed’ and a third for ‘booked but not yet confirmed’. Obviously I would need to have to keep the calendar up-to date on a regular basis, as part of my business housekeeping. I am using ‘Numbers’. ‘Pages’ and ‘Iweb’ to generate my site as I want it.
Does anyone know how to do this, or where I can find something I can perhaps make in Numbers and/or Pages, and drop into Iweb?
Many thanks for your help.
Michael
Thank you!
Michael – Have you looked at embedding a version of Google Docs that is linked or synced with your iCAL?
[...] ways to add functionality and features to iWeb. Although adding features and capabilities (forms on iWeb) can be very beneficial to you as you develop your iWeb based site, sometimes you may just be [...]
Does anyone know how to enable an iweb site to be searchable in a search engine such as google? I’m under the impression that search engines search based on meta words, etc. Please advise!! Thanks!
Jeff, there are a number of things you can do such as creating and submitting a sitemap with google, gaining backlinks from other sites, etc. I suggest you contact a Search Engine Optimization company for assistance.
Try SneakySheep… found it on google funnily enough.. it redirects ur google docs forms to any page or site u want
I’ve embedded my google form on my webpage, the form works when I click on submit with the confirmation notification coming up, but the only place to go from the confirmation page is to google forms. What do I need to do to have people completing the form get back to my website?
Great Tutorial!
the only thing is i would like to use a complicated form that has decisions. i can create this with google docs all fine and the first page works and fits the theme of my webpage, but as soon as you move onto the next page in the form it reverts to the google template. any suggestions on how to ensure the whole form fits the iweb theme?
Hi,
I created a google form with multiple pages which I later add to iWeb pages.
The problem is that when you submit the form the information in the previous pages gets lost.
Is there a way to link the pages together so that the information they contain doesn’t get lost?
Thanks for you help.
Can you provide a Link so that I can see the problem or what’s going on?
@Dan
Unfortunately I can’t since the content of the website is confidential.
To sum up I integrated every google form page into different iWeb pages but I have trouble linking them together so that all the information they contain appear in the spreadsheet. Basically i customised every google page, so i cant use the embedding link provided by Google, otherwise I would have all the google pages on one page in my website. Is there a way to link them together through some sort of coding?
Thank you.
i can’t find how to change the font color…… i do everything but i don’t know if you are supposed to enter the HTML code that you provide before the HTML code from the form…… or is it between? because i can’t find it. maybe because google changed it.
You’ll need to find the class for label and change its color. For the example the label class was – ss-q-title. It maybe different, but it will be the class in the label tag. For example, it would look like The class is “title” and to set its font you’d enter in the style area the following: .title {color:red;}
Hey Dan,
Thanks SO MUCH for this great tutorial! Was wondering if you could quickly share the CSS code that allows us to reformat our from so that the field label (e.g. ‘Name’ ‘Comment’) appear to the LEFT of the field, as in your example above, instead of above the field. I took a quick look at w3schools but didn’t even know where to begin looking (what topic would this be under?). Thanks again!
Hi, Good tips above but how can I make mandatory for people to enter their email address to my email form on the home page before it will allow them to proceed. In other words they will have to enter their email address to see the rest of the website, how can I do that?
Kevin – that type of functionality is a bit out of iWeb’s league. You’ll need to get a more advanced cms like wordpress to achieve that type of functionality.