ebs.getFormAttributeRequired

Returns the required level of an attribute.

Syntax

Copy
ebs.getFormAttributeRequired(formId: string, attributeName: string): 0 | 1 | 2

 

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

Response

Key Description
required_level

The required level of the specified attribute. The response key can have one of the following values:

0 - None

1 - Recommended

2 - Required

Examples

In this example:

Copy
ebs.getFormAttributeRequired("ebsContainerContent","name")