This section elaborates events used in forms-flow-web. The Form.io renderer uses the EventEmitter3 library to manage all of the event handling that occurs within the renderer. Within the Form.io renderer, there are a number of events that are fired that allow you to respond to these events and then do something once they fire.
Name | Description | Arguments | Example |
---|---|---|---|
reloadTasks |
Triggered for button components configured as Event action. The task is removed and refreshes RHS . Used in the task page. | form.emit('customEvent', { type: "reloadTasks"}); | |
reloadCurrentTask |
Triggered for button components configured as Event action.It refreshes the task page | form.emit('customEvent', { type: "reloadCurrentTask"}); | |
customSubmitDone |
Similar to "submit" but only fires when the submission is "saved" via API and redirect to Form list page. Used in the create form page | form.emit('customEvent', {type: "customSubmitDone"}); | |
actionComplete |
Triggered for button components configured as Event action. | form.emit('customEvent', { type: "actionComplete", component: component, actionType:data.actionType }); |