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:
- On the Account entity, the Basic Info step (form) contains a required attribute named "name" .
- We make the request on the Basic Info form.
Copy
ebs.getFormAttributeRequired("ebsContainerContent","name")