Optional
option: OptionsReadonly
NameProtected
_attributeGets the value.
The value.
A collection of all the controls on the form that interface with this attribute.
Displays an error or recommendation notification for a control, and lets you specify actions to execute based on the notification.
Optional
actions: Xrm.Controls.ControlNotificationAction[]Adds a handler or an array of handlers to be called when the attribute's value is changed.
The function reference or an array of function references.
Fire all "on change" event handlers.
Gets attribute type.
The attribute's type name.
Values returned are:
Gets the attribute format.
The format of the attribute. Values returned are: language, timezone
Gets the option matching a value.
The enumeration value of the option desired.
The option.
Gets all of the options.
An array of options.
Gets the current level of requirement for the attribute.
The required level, as either "none", "required", or "recommended"
Gets selected option.
The selected option.
Gets current submit mode for the attribute.
The submit mode, as either "always", "never", or "dirty"
The default value is "dirty"
Clears the notification identified by uniqueId.
(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.
Removes the handler from the "on change" event.
The handler.
Sets the state of the control to either enabled, or disabled.
true to disable, false to enable.
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.
Sets the required level.
The requirement level, as either false for "none" or true for "required"
Sets the required level.
The requirement level, as either "none", "required", or "recommended"
Sets the submit mode.
The submit mode, as either "always", "never", or "dirty".
Sets the value.
The value.
The getOptions() method returns option values as strings. You must use parseInt to convert them to numbers before you can use those values to set the value of an OptionSet attribute. Attributes on Quick Create Forms will not save values set with this method.
Sets the visibility state.
true to show, false to hide.
Generated using TypeDoc
Interface an OptionSet attribute.
See
EnumAttribute