Skip to main content

Form

The form object contains all getters and setters for managing the form. All methods are connected to the formId value.

For example, here you will find events that fire when field value changes like hover, blur, focus, etc. Also, you can find all helpers to store data in the internal FormData object before sending it to the Rest-API.

Usage

To access Form object and all its customization options use your browsers console and type:

window?.esForms?.form

You can find all methods and their documentation on this link.

Example

This example will return event listeners for all forms on your page.

window?.esForms?.form?.removeEvents();

This example will initialize input field by name and formId.

window?.esForms?.form?.setupInputField('<fieldName>', '<formId>');