ebs.isFormInsert

Returns "true" if the current form is in Insert mode and "false" otherwise.

IMPORTANT!  
For most use cases, it is recommended to work with the formData.mode property directly.
The ebs.isFormInsert is a global function which means it can be used in some exceptional cases where the formData object is not available, such as when debugging in the browser console or when writing a fetch in a the After Generate attribute of a view that is going to be rendered in a form.

Syntax

Copy
ebs.isFormInsert(): boolean

Form more details, see formData.mode.