Client-Side Event Properties

Many XMod controls allow you to attach Javascript to them that will execute when a certain client-side event fires. Which events are available depends on the underlying form control. Some of the available events are listed below. There may be more or less events available to you depending on the control and the browser being used to view the form. Refer to a Javascript book or documentation for more information.

 

 

 

EXAMPLES

<input ref="FirstName" onfocus="alert('Enter your first name');">

  <label>First Name</label>

</input>

 

If the validateForm() function returns false, the add button will cancel

it's processing. This will keep the record from being added until the

form values are valid (i.e. when validateForm() returns true)

<addbutton text="Add Item" display="button" onclick="validateForm();"/>