Events
'Events' provide an opportunity for developers to customise a form's functionality by specifying actions to be taken when certain things happen during completion of a form, for example when a button is clicked or the value in an Element changes or a page is loaded.
Many Elements include the ability to allow you to customise their actions in this way. If an Element has this facility, you will find an Events tab in the Properties Pane when the Element's properties are displayed in the pane. Under this tab you will find the Events supported by the Element.
For example the Button Element has a Clicked Event property, which allows you to specify the action or actions to be performed when a user clicks the button whilst completing the form. Text Box Elements, on the other hand, have a Changed Event property, which means you can specify an action or actions to be performed when the value in the Element changes. The Submit Button Element has Success and Failure Events allowing you to provide follow up actions depending upon whether your form is submitted successfully or not.
For some Elements, such as the standard Button Element, you must specify an Event property in order for the Element to have a purpose, for others such as an Image Element, you only need to specify an Event property if you want to extend the Element's default behaviour, e.g. to make an image behave like a button.
The Event properties allow you to choose from a set of predefined actions or, for more experienced developers, you can perform any actions you choose by adding your own JavaScript. For more information about completing the Event properties see Event Properties.