About forms

Flex supports form development by using the Form layout container and several child components of the Form container. The Form container lets you control the layout of a form, mark form fields as required or optional, handle error messages, and bind your form data to the Flex data model to perform data checking and validation. Also, you can apply style sheets to configure the appearance of your forms.

You use three different components to create your forms, as the following example shows:


Form container

The following table describes the types of components that you use to create forms in Flex:

Container

Tag

Description

Form

<mx:Form>

Defines the container for the entire form, including the overall form layout. Use the FormHeading control and FormItem container to define content. Also, you can insert other types of components into a Form container.

FormHeading

<mx:FormHeading>

Defines a heading within your form. You can have multiple FormHeading controls within a single Form container.

FormItem

<mx:FormItem>

Contains one or more form children arranged horizontally or vertically. Children can be controls or other containers. A single Form container can hold multiple FormItem containers.

.

For complete reference information, see Form, FormHeading, and FormItem in Adobe Flex 2 Language Reference.


Flex 2.01

Take a survey


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/201/html/layouts_065_16.html