Table of Contents

behavior: form

Standard behavior of the <form> element. Form is a “submitable” container. When it receives FORM_SUBMIT event from <button type=“submit”> it sends collection of name/value pairs to the server on url defined by action attribute.

Elements

that have this behavior applied by default (see master style sheet):

Attributes

that this behavior knows about:

Value

Value of the form element is a collection of name/value pairs represented as VALUE (or json::value) of type T_MAP.

Methods

Form supports following xcall() methods (see dom::element::xcall() function):

Events

When the behavior:form receives BUTTON_CLICK event from <button type=submit> or <button type=reset> it generates:

To discard submission or clearance of the form the application shall “consume” the event - return TRUE from the event handler.