-
Notifications
You must be signed in to change notification settings - Fork 16
JS Hooks
They work only after the release of JetFormBuilder 3.0.
Table of Contents
Internal JetFormBuilder hooks work with wp-hooks package
const {
addAction,
addFilter,
} = JetPlugins.hooks;
addAction(
'jet.fb.some.action',
'my-plugin/my-function',
function ( input ) {
// any code
},
);
addFilter(
'jet.fb.some.filter',
'my-plugin/my-function',
function ( input ) {
// some changes with `input`
// we must return the input
return input;
}
);
Runs before processing the entire DOM inside the form or repeater element.
- observable
Observable
Runs after processing the entire DOM inside the form or repeater element.
- observable
Observable
It is executed every time after initialization of any field.
- input
InputData
Filters the set of objects that will work with each field in the form, depending on its type and settings. Each individual object is the main control element of the field behavior
- dataTypes
InputData[]
Filters the set of objects that will work with each field in the form, depending on its type and settings. Each individual object is responsible for the changes in the DOM that should occur after the field value is updated.
- signals
BaseSignal[]
Need more information? Check out the official documentation at jetformbuilder.com or contact Crocoblock Support