<FormStateRule> (RibbonDiffXml)
Applies To: Dynamics CRM 2015
Specifies a rule that can detect the state of the form.
Syntax
<FormStateRule
Default=["0" | "1" | "true" | "false"]
InvertResult=["0" | "1" | "true" | "false"]
State=["Create" | "Existing" | "ReadOnly" | "Disabled" | "BulkEdit"]
/>
Attributes and Elements
The following table lists the attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
Type |
Usage |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default |
Sets the default return value for the rule if the actual value cannot be determined. |
Boolean |
Optional |
||||||||||||
InvertResult |
Negates the return value of the rule. |
Boolean |
Optional |
||||||||||||
State |
Describes the type of form. These correspond to the values returned by the Xrm.Page.ui (client-side reference).getFormType method. Valid values:
|
Enumeration |
Required |
Child Elements
This element has no child elements.
Parent Elements
Element |
Description |
---|---|
Specifies either the definition of a rule used to display a ribbon element or a reference to a DisplayRule from a command definition. |
|
Specifies either the definition of a rule used to enable or disable a ribbon element or a reference to an EnableRule from a command definition. |
|
Specifies a set of rules that must be evaluated together. |
Element Information
XPath |
|
Schema Name |
FormStateRuleType |
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |
See Also
Ribbon XML reference
Customize commands and the ribbon
© 2016 Microsoft. All rights reserved. Copyright