ebs.setFormAttributeReadonly
Sets the read-only property of an attribute.
Syntax
Copy
ebs.setFormAttributeReadonly(formId: string, attributeName: string, readonlyBool: boolean): void
| Parameter | Description |
|---|---|
formId
|
The ID entity form from on which you want to set the read-only property of a specific attribute value. |
attributeName
|
The name of the attribute whose read-only property you want to set. |
readonlyBool
|
The value of the read only property: 0/false - None 1/true - Read only |
Response
void
Examples
In this example:
- We have an entity form (e.g. Account_edit) which contains an attribute called "name".
- On the entity form, we'll set the value of read only property of the "name" attribute to "true" or "1". The attribute will become read only.
Request
Copy
ebs.setFormAttributeReadonly("ebsContainerContent","name",true);
or
Copy
ebs.setFormAttributeReadonly("ebsContainerContent","name",1);