label is a string that will be displayed next to the field.
name is a string containing the name of the field.
typ is a string containing the type of the field. It can be one of the following: text, password, file, hidden, submit, image, select, textarea, radio, checkbox
mask is a mask used to render the field. The default value is defaultFormMask.defaultMask. The mask will receive the FormField instance as an argument and it should return some HTML to render the field.
mandatory is an integer that indicates whether the field is mandatory or not.
size is an integer that indicates the size of the field.
mandatory is an integer that indicates whether the field is mandatory or not (it is only used for some of the fields like text or password).
optionList is a list of strings containing the different options for a fied (is is only used for radio and checkbox fields).
defaultValue is a string containing the default value for the field.
validate is a function used to validate the field. The function will receive the value of the field as an argument, and it should return None if the value is correct, or a string containing the error message if the value is not.
See About this document... for information on suggesting changes.