Event Handlers for Web-based Forms

You can raise form events from a custom web-based (HTML) form. From the Form activity’s event handler, you can update input parameters and set form behavior, such as submitting and cancelling the form.

Sample HTML Form

To define form events, give your event an alphanumeric name, and then call the fireFormEvent method with the name of the event that you want to fire.
Note: Form events in web-based HTML5 forms are supported only in Vision.
<!DOCTYPE html>
<html>
	<head data-formevents="MyFormEvent1, MyFormEvent2">
  	<title>Custom HTML Form</title>
	</head>
	<body>
		<form name="form" id="myFormId">
			
			<!-- Form Markup -->
		  <button type="button" onclick="fireFormEvent('MyFormEvent1')">Fire MyFormEvent1</button>
          <button type="button" onclick="fireFormEvent('MyFormEvent2')">Fire MyFormEvent1</button>				
		</form>
	</body>
</html>