ebs.getFormMode
Returns the mode of the current form (insert or edit).
IMPORTANT!
For most use cases, it is recommended to work with the formData.mode property directly.
The ebs.getFormMode 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.
For most use cases, it is recommended to work with the formData.mode property directly.
The ebs.getFormMode 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.getFormMode(): "insert" | "edit"
Response
Returns a string containing the form's mode.
Form more details, see formData.mode.