The following options are available for a field:
O_VISIBLE
The field is visible, hence is displayed when the form is posted.
O_ACTIVE
The field is active in the form, meaning that it can be visited during form processing.
O_PUBLIC
The contents of the field are echoed to the screen.
O_EDIT
The contents of the field can be modified
O_WRAP
The contents of the field are wrapped on a word boundary, if this option is off then the field will be wrapped on a character boundary.
O_BLANK
Blank the field on new data being entered if and only if the field cursor is at the left hand side of the field.
O_AUTOSKIP
Skip to the next field when the current field reaches its maximum size.
O_NULLOK
The field is allowed to contain no data
O_STATIC
The field is not dynamic, it has a fixed size.
O_PASSOK
An unmodified field is allowed.
O_REFORMAT
Retain the formatting of a field when the buffer is retrieved. If this option is not set then the buffer returned will be a single string with no line breaks. When this option is set newline characters will be inserted at the point where the string has been wrapped in a multiline field. This option is an extension to the forms library and must not be used in portable code. See the
field_buffer(3) man page for how this option modifies the behaviour of
field_buffer().
The following options are on by default for a field:
O_VISIBLE,
O_ACTIVE,
O_PUBLIC,
O_EDIT,
O_WRAP,
O_BLANK,
O_AUTOSKIP,
O_NULLOK,
O_PASSOK, and
O_STATIC.