addOnLookupTagClick (Client API reference)

Adds an event handler to the OnLookupTagClick event.

Control types supported

Lookup

Syntax

formContext.getControl(arg).addOnLookupTagClick(myFunction);

Note

Unsure about entity vs. table? See Developers: Understand terminology in Microsoft Dataverse.

Parameter

Name Type Required Description
myFunction Function reference Yes The function to add to the OnLookupTagClick event. The execution context is automatically passed as the first parameter to this function along with eventArgs that contain the tag value. More information: OnLookupTagClick event.

You should use a reference to a named function rather than an anonymous function if you later want to remove the event handler.

removeOnLookupTagClick

OnLookupTagClick event