ebs.getFormAttributeValue

Returns the value of an attribute on the specified entity form.

IMPORTANT!  
For most use cases, it is recommended to work with the formData.model property directly.
The ebs.getFormAttributeValue 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.getFormAttributeValue(formId: string, attributeName: string): any

 

Parameter Type Description
formId string The ID of the entity form from which you want to return specific attribute value.
attributeName string The name of the attribute whose value you want to return.

For more details, see formData.model.