IrisJS

Namespace: forms

forms

Members

(static) hook_form_submit

Generic form submission handler

Use this hook to implement a handler on all submitted forms.

The form fields are available keyed under thisHook.const.params.

It is easier to handle submission of a single form by appending _ followed by the form name to this hook.

Source:
See:
  • hook_form_submit_.<form_name>

(static) hook_frontend_template_context

Prepare a form for display by adding or changing fields at the render stage

Source:

Methods

(static) registerWidget(widgetFunction, name)

Register a new form widget type

Widgets consist of a name and a function that is sent to the client to implement a custom form item.

Parameters:
Name Type Description
widgetFunction function

Function that is executed client-side when the form is displayed.

name string

The widget name.

Source: