Event Properties

The Event properties allow you to assign actions to Elements, which will be executed when predefined conditions (called 'Events') occur within a form at runtime. For example, Events include a Button being clicked or tapped, the contents of a text box changing and a page being displayed. If an action or JavaScript function is assigned to an Event and the Event is triggered at runtime, the assigned action or function will be run and hence the actions associated with it will be performed.

The Events properties can be found under the Events tab, Picture showing Events tab., in the Properties Pane when an Element's or a page's properties are displayed in this Pane and look like this:

Picture showing Text Box properties.

The Events available vary, depending upon the type and functionality of the Element. For example a Button will have a 'Clicked' Event because the point of a Button is that the user 'clicks' it to do something, whereas a Text Box has a 'Changed' Event so that you could potentially validate user input when the contents of the box changes because a user types something in it.

 

To display the properties for a page, if the page is currently displayed in the Form Design workspace, click anywhere on the background of the page outside any Elements, otherwise select the page in the Project Explorer's Pages tab. The page properties will be displayed in the Properties Pane.

To display the properties for an Element, select the Element in the Form Design workspace.

 

You can assign actions to an Event by choosing from a list of predefined actions or by coding your own JavaScript. To do this click on the Picture showing Events button. button under the Events tab.

The Event Builder pop-up will be displayed:

Picture showing the event Builder pop-up.

If you haven't assigned an action to this Event, the pop-up will display No Event Defined as shown in the picture above.

To assign an action to the Event, click on the drop-down box:

Picture showing the Event actions drop-down list in the Event Builder pop-up.