qForm Examples

Simple Form #1
This is a simple example form. It demos how to initialize a qForm object as well as how to make certain fields required.

Simple Form #2
Same form as above, but this show how to validate the type of data entered in to each field.

Simple Form #3
Same form as above, but forces validation to occur if focus leaves the field.

setFields/getFields
This example illustrates how qForms can populate your form based upon an associative array (also known as a "structure.") It also shows off how qForms can return the current as a structure.

Layers (Single Form)
This example illustrates how qForms can be used even if the form resides in a layer.

Layers (Multiple Forms)
This example illustrates how qForms can to help merge data together from multiple forms on multiple layers.

Containers
This examples illustrates the concept of "Containers." Containers are special types of select boxes in which every item in the select box is part of the value. This example also demonstrates the "transferTo()" and "transferFrom()" methods.

Advanced Form
This example illustrates how you can easily create advanced functionality in your forms, without having to do a lot of complex JavaScript.

n-Related Select Boxes
This is example shows how you can create related select boxes to the nth level.

Validate At Least One
This examples shows off the validateAtLeastOne() method, which is in the "validation_addon" module. This validation routine will ensure that at least one field, from a group of fields, contains a value.

qForm "Extension" Library Examples

Bits
This example illustrates how to use the "Bits" extension library. It shows off the getBits() and setFields() methods.

Cookies
This example illustrates how to use the "Cookies" extension library. It shows off some of the common methods, such as the saveFields() and loadFields() methods.

[Documentation]