Navigation:  Enterprise Forms Modules > Form Template Manager > Form Template Details > Form Template Designer > Common Tabs >

Client Actions Tab

Previous pageReturn to chapter overviewNext page

Client Actions are client side events that can be used to trigger Javascript statements or functions.

 

Client Action Tab

 

ClientActionTab

Property Name

Description

PostbackOnChange

Indicates whether the form should perform a postback upon a form value or selection change

CausesValidation

Indicates whether inline validation of form fields should occur.  This property is only available for the Button element

OnBlurAction

Triggers when field element looses focus

OnFocusAction

Triggers when field element receives focus

OnClickAction

Triggers when field element is clicked upon

OnDblClickAction

Triggers when field element is double clicked upon

OnChangedAction

Triggers when field element content/value has been changed

OnKeyPressAction

Triggers when there is a key press within the area of the field element

OnKeyDownAction

Triggers when a key is pressed (at Down state) within the area of the field element.

OnKeyUpAction

Triggers when a key is pressed (at Up state) within the area of the field element

OnMouseOverAction

Triggers when the mouse cursor is over the area of the field element

OnMouseMoveAction

Triggers when the mouse is being moved within the area of the field element

OnMouseOutAction

Triggers when the mouse cursor is moved out of the area of the field element

OnMouseDownAction

Triggers when a mouse button is clicked (at Down state) within the area of the field element

OnMouseUpAction

Triggers when a mouse button is clicked (at Up state) within the area of the field element

OnSelectAction

Triggers when a item has been selected,  This action is used for list type elements such as Drop Down List, Radio buttons or Check boxes

 

 

When to use Client Actions

 

Client Actions is typically used when there is a need to call a Javascript function or functions while filling out the form.

 

For example, a simplest Javascript call could be to attach a Javascript alert statement on the OnBlurAction of a field element

 

OnBlurAction = alert('Hello World')

 

Thus when the form is displayed to the user, the field that has the OnBlurAction attached will automatically display a message containing "Hello World" when the field looses focus.

 

 

Field ID rendering

 

When a form element is created, Enterprise Forms automatically generate a 16 character unique ID.  This ID can not be referenced directly in Javascript.  However, Enterprise Forms 2.3 now supports a fields ID rendering whereby the field ID generated by Enterprise Forms can be automatically converted to an HTML field ID referencing the object in Javascript functions.

 

To convert a field ID generated by Enterprise Forms to a HTML field object ID simply put a pair curly brackets, {}, around the field ID.

 

 

For example:  Enterprise Forms generates a field ID as ID1234567890123456

 

if you wish to have a function that reference the HTML field ID of this field, simple add a pair of curly brackets {}, around the ID as "{ID1234567890123456}".  This tell Enterprise Forms to convert the field ID to the correct HTML field ID

 

Note that the field ID rendering feature can only be applied to the Field Client Actions attributes