FORM

INTRO

FORM application provides set of CSS stylesheets for compact forms definitions and also it provides database model for storing metadata information about documents, fields and validations.

SPEC

The list of supported field types:

string — Label control.
integer — Number.
bool — Boolean selection (approvals).
combo — Exclusive Circle Checklist (Radio).
comboLookup — Exclusive Dropdown on remote feed.
select — Select, Option (Combobox).
check — Multiple Square Checklist (Checkbox).
calendar — Datetime Picker.
money — Money with fixed point.
pay — Payment Method.
phone — Telephone Number with +.
auth — Credentials.
card — Credit Cards.
otp — One Time Password.

DOCUMENT

-record(document, { ?ITERATOR(feed), name, base, sections, fields, buttons, access }).

FIELD

-record(field, { id, sec=1, name, pos, title, layout, visible=true, disabled=false, format="~w", curr=[], postfun=[], desc, wide=normal, type=binary, etc, labelClass=label, fieldClass=field, bind=[], index=[], hidden=false, boxClass=box, vector=false, access, tooltips=[], options=[], min=0, max=1000000, length=10, postback }).

SECTION

-record(sec, { id, name, desc="" }).

BUTTON

-record(but, { id, postback, name, title, sources=[], class }).

SELECTOR

-record(sel, { id, postback, name, title }).

OPTION

-record(opt, { id, postback, name, title, checked=false, disabled=false, noRadioButton=false }).

VALIDATION

-record(validation, { name, type, msg, extract = fun(X) -> X end, options=[], function, field={record,pos} }).