Portlet Factory, Version 6.1.2


 

Dynamic Validation builder inputs

This topic describes the Dynamic Validation builder inputs.

Input name Description
Name Name for this builder call. The WebSphere Portlet Factory Designer displays this name in the builder call list.
Field Selector Tool Specify how to search the available fields in the data page structure.

By Name

Display a list of fields to be modified in the builder call editor. Each row in the table provides a picker that displays each field name in the structure on which the data page operates as the nodes of a tree. You can specify the nodes on which dynamic validation operates by selecting nodes in this tree.

By Type

Display a list of field types in the builder call editor. Each row in the table provides a selector that displays a list of field types in the structure on which the data page operates. You can choose a type representing the fields you want.

Using both techniques

Display both name and type tables. You can now specify the fields on which this data field modifier operates by both name and type or by type.
Field Types Select the field types that represent the fields you want. The list of field types is available when you select Field Selector Tool > By Type or Using both techniques.
Fields Select the form input or inputs to which you want to apply dynamic validation. If a container is chosen, all children are processed recursively.
Trigger Event Select or enter an HTML event handler that runs the validation. The onchange, onblur and onkeyup event handlers are displayed in the selection choice. However, you can type any other valid HTML event handler not shown in the selection. For more information about standard HTML event handlers and events, see an HTML reference, for example, the Gecko DOM Reference documentation on the Mozilla Developer Center.
Mode Select when validation is to be done for the selected fields.

Display errors for current input only

The form renders without displaying any errors, but, as a trigger event is launched, any errors for that field are displayed.

Show errors for the whole form

The form is initially displayed with all current errors, and validation errors for all selected fields are refreshed as the user interacts with the form. This option is likely to perform more slowly, and some users possibly find the initial validation errors to be annoying. However, the behavior is useful if the form includes cross-field checks (for example, field A must be greater than field B).

Parent topic: Dynamic Validation builder


Library | Support |