By Niels Hartvig, 7/24/2008

Rating

Description

This package contains an ultra simple contact form with pre-defined fields and the option of sending a copy to the visitor as well as unlimited copies to recipients. You can also specify subject, header and footer in the email.

The pre-defined fields can be renamed when you insert the macro and fields with empty captions are not shown. This means that you can use it multiple times as you don't need to modify the code, but simply changes the captions when you insert the macro (using Macro Properties).

The fields are:
- Name
- Email
- Company
- Address (textarea)
- Zipcode
- State
- Country
- Phone
- Comment (textarea)

The markup is semantic, accessible and easy to style with css.

USAGE:
-----
So say you want a form containing Name, Email, Department and Feedback, you simply click insert macro and fill out the captions Name, Email, change country (or another one) to Department and change comment to "Feedback". Both when the contact form is rendered and the email is shown, the captions you wrote when you inserted the form will show instead of the "default" ones and the ones you left blank won't be shown.

STYLING:
--------
The labels got a style of "umbMailFormLabel" and by placing the form inside an html element with a known id (in this sample 'contactForm'), it's easy to style both the textboxes (input) and larger textboxes (textarea):
.umbMailFormLabel {float: left; width: 15em;}
#contactForm input {width: 17em;}
#contactForm textarea {width: 17em; height: 8em;}

Download

Download item
Downloaded 71 time(s).

Comments

Add a comment (requires log-in)



Brilliant umbraco hosting provided by FAB-IT