ebs.removeFormEditButton
Removes the Edit button for all lookup or option set fields from a form.
This allows users to only select preexisting values and prevents them from editing the option sets or the related entities of the lookup attributes.
Syntax
Copy
function ebs.removeFormEditButton(formId: string): void;
| Parameter | Type | Description |
|---|---|---|
formID
|
string | ID of HTML element storing the entity form. HINT By default, forms are displayed in a <div> element with the ebsContainerContent ID. |
Examples
In this example, we use the ebs.removeFormEditButton function to remove the Edit buttons for the options sets and lookup attributes displayed on the current form (the <div> element with the ebsContainerContent ID).
Copy
ebs.removeFormEditButton('ebsContainerContent');