ebs.removeAttributeEditButton

Removes the Edit button for an option set or lookup attribute field displayed on a form.

This allows users to only select a preexisting value and prevents them from editing the option set or the related entity of the lookup attribute.

Syntax

Copy
function ebs.removeAttributeEditButton(formId: string, attributeName: string): void;
 
Parameter Type Description
formId string ID of HTML element storing the entity form on which the attribute is displayed.
HINT  
By default, forms are displayed in a <div> element with the ebsContainerContent ID.
attributeName string Name of the lookup or option set attribute whose field you wish to display without the Edit button.

Examples