-
Notifications
You must be signed in to change notification settings - Fork 9
Home
jimpriest edited this page Jul 21, 2012
·
20 revisions
cfUniForm is a library of custom tags and other related assets that is based upon the "Uni-Form":http://sprawsm.com/uni-form/ markup by Dragan Babic. cfUniForm delivers the best of both worlds:
- Standards-compliant (XHTML Strict) form markup that is consistent across all common browsers.
- Build your forms by writing ColdFusion, and not (x)HTML/CSS.
Step 1. Load the uform tags
<cfimport taglib="/tags/forms/cfUniForm" prefix="uform" />
Step 2: Open the form
<uform:form action="myAction.cfm" method="post" id="myForm">
Step 3: Add the form elements (see "cfUniform Tags" below)
Step 4: Close the form
</uform:form>
<cfimport taglib="/tags/forms/cfUniForm" prefix="uform" />
<uform:form action="myAction.cfm" method="post" id="myForm">
<uform:fieldset legend="Required Fields" class="inlineLabels">
<uform:field label="Email Address" name="emailAddress" isRequired="true" type="text" value="" hint="Note: Your email is your username. Use a valid email address." />
<uform:field label="Choose Password" name="password" isRequired="true" type="password" value="" />
<uform:field label="Re-enter Password" name="password2" isRequired="true" type="password" value="" />
</uform:fieldset>
</uform:form>
- Checkbox
- CountryCodes
- Field
- Fieldset
- Form
- Option
- Radio
- States-can
- States-us
- View the "Kitchen Sink" demo form
- View the "Global Config" demo form
- View the "Custom Validation" demo form
- View the "Validation Errors Array" demo form
- View the "Multiple Uploads" demo form
- View the "Pre-Loaded CSS/JS" demo form