WSForm.subscribe method
Description
Use WSForm.subscribe
to subscribe to form events.
Syntax
WSForm.subscribe(eventName, eventHandler,
callbackFn)
Parameters
This table describes the method parameters.
Name | Type | Description |
---|---|---|
eventName | String | Specify the name of a form event to subscribe to. |
eventHandler |
Function | Optionally, specify this function to call when the specified event is generated on the form. This function is called with the name of the event as the only parameter. |
callbackFn |
Function | Optionally, specify this function to call when the subscription has been initialized. |