Displays an error or recommendation notification for a control, and lets you specify actions to execute based on the notification.
Use this to add a function as an event handler for the keypress event so that the function is called when you type a character in the specific text or number field. For a sample JavaScript code that uses the addOnKeyPress method to configure the auto-completion experience, see Sample: Auto-complete in CRM controls.
The function reference.
Adds an event handler to the OnOutputChange event.
The function to add to the OnOutputChange event.
Clears the notification identified by uniqueId.
Optional
uniqueId: string(Optional) Unique identifier.
true if it succeeds, false if it fails.
If the uniqueId parameter is not used, the current notification shown will be removed.
Gets the control's bound attribute.
An Attribute type.
The attribute.
Gets the control's bound attribute.
The attribute.
Gets the controls type.
The control type.
Values returned are:
Gets the name of the control on the form.
The name of the control.
The name assigned to a control is not determined until the form loads. Changes to
the form may change the name assigned to a given control.
When you use the control getName method the name of the first control will be the
same as the name of the attribute. The second instance of a control for that
attribute will be "
Returns a dictionary of the output properties of the control.
A dictionary for the output parameters from the control.
For a PCF control this is of the pattern
Gets the latest value in a control as the user types characters in a specific text or number field. This method helps you to build interactive experiences by validating data and alerting users as they type characters in a control. The getValue method is different from the attribute getValue method because the control method retrieves the value from the control as the user is typing in the control as opposed to the attribute getValue method that retrieves the value after the user commits (saves) the field.
Use this to remove an event handler for a text or number field that you added using addOnKeyPress.
The function reference.
Deprecated in v9.1; Use a custom control.
External Link: Deprecated Client APIs Remarks: If an anonymous function is set using addOnKeyPress, it can’t be removed using this method.
Removes an event handler from the OnOutputChange event.
The function to remove from the OnOutputChange event.
Sets a control-local notification message.
The message.
Unique identifier.
true if it succeeds, false if it fails.
When this method is used on Microsoft Dynamics CRM for tablets a red "X" icon appears next to the control. Tapping on the icon will display the message.
Shows upt to 10 matching strings in a drop-down list as users press keys to type charactrer in a specific text field. On selecting an item in the drop-down list, the value in the text field changes to the selected item, the drop-down list disappears, and the OnChange event for the text field is invoked
The results to show
Generated using TypeDoc
Interface for Auto Lookup Control. This is not an Entity Lookup, but a control that supports AutoComplete / KeyPress Events (Text or Number)
Remarks
This interface is not supported for CRM mobile clients (phones or tablets) and the interactive service hub. It is only available for Updated entities.
See
StandardControl
Deprecated
Use AutoLookupControl instead.