|Web form||Synonyms (implementations) of this notion are, for example, "survey"
and "questionnaire". A web form is an aggregate of:
Different access permissions can be applied to a web form:
A web form can be assigned mail templates that are used to create mail events upon filling and saving a form.
|Field||When filling in the form, a user views only questions and answers. When a user clicks Save, the answer values are saved as the result. Very often there is a need to calculate and store some value on the basis of the user supplied answers. To store these values, developers can use the web form fields.|
A question is an aggregate of:
A web form question implies a set of HTML fields intended to receive
the user answer to a question. Each HTML field is an answer.
Hence, an answer (in terms of this module) is an aggregate of
the following notions:
|Result||After a user fills in a form and clicks Save, all the answer
values are stored in the database as the result. If a handler
requires some fields, the calculated field values can also be stored as
the result. Each result must have a status regulating the result access
permission. A result is an aggregate of:
|Status||The major task of status is to delimit the access permission to the
web form result for each user group.
The status access permission can be the following:
Hence, each result must have a status assigned to it. When creating a result, it must be assigned a default status that has an option "Assign this status to all new documents" set.
Validator is a set of functions that are used to verify that the values of the form fields satisfy
A set of types of questions to which the validator is applicable is assigned to each validator. Validators cannot be used with questions that can have answers of different types.
You can create custom validators for any field types. For more details, see Creating Validators.
|© 2001-2005 Bitrix||Bitrix Site Manager - Content Management & Portal Solutions|