Field Types Supported by WODA
Usage:
$x = 'phoneNumber';# this is the name of the field
$WBF{$x,'type'} = 'INPUT';
- BREAK
A horizontal line to separate fields in forms and tabular output
- COMPUTE
A field which is not stored in the database but is computed on the fly when record is read.
- DATE
Date type. Internally represented as yyyy/mm/dd.
- EMAIL
An email address. By default rendered as mailto: link, checked to include @a.
- FILE
A file somewhere on the server, relative to htmlURL. E.g. picture, full text document ... By default rendered as link to that file.
- HTMLAREA
A paragraph of text or a whole tagged HTML document. Any formatting should be done in HTML. If HTML tags are not present two newlines will be replaced by P tag. Adjust size with rows=n cols=m in typePar. Enable rich editing with RICH in typePar
- IMAGE
Like USERFILE but will be rendered on screen as an IMG.
- INPUT
The defaul field type. A line of text.
- LINKOPTION (obsolete)
An option list where the options are keys from another table. Define table's alias or dataDir in the into attribute
- LIST
A list of values. Values should be entered one per row. Formatting and verification applies one per each item
- OPTION
An option list. Define options in the options attribute. typePar may include RADIO, SIZE, MULTIPLE and TREE. Field will be offered for hierarchical browsing.
- SUBMIT
Link to submit buttons. Use if you want an extra section in the middle of the form.
- TEXTAREA
Several rows of preformatted text. Adjust the size with rows=n cols=m. Will be tagged as <PRE> unless P or BR tags are present
- URL
A URL. By default rendered as a link.
- USERFILE
Like FILE, but database users can upload it to the server.