<FormTypeRule> (RibbonDiffXml)

 

Applies To: Dynamics CRM 2013

Specifies a rule that detects the type of Microsoft Dynamics CRM form.

Syntax

<FormTypeRule
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"]
 Type=["Main" | "Preview" | "AppointmentBook" | "Dashboard" | "Quick" | "QuickCreate"] 
/>

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

Type

Specifies the type of form.

Valid values:

  • Main

  • Preview

  • AppointmentBook

  • Dashboard

  • Quick

  • QuickCreate

See Remarks.

Enumeration

Required

Child Elements

This element has no attributes.

Parent Elements

Element

Description

<DisplayRule> (RibbonDiffXml)

Specifies either the definition of a rule used to display a ribbon element or a reference to a DisplayRule from a command definition.

<Or> (RibbonDiffXml)

Specifies a set of rules that must be evaluated together.

Remarks

The Type values correspond to the following:

Value

Presentation

Main

An entity form displayed in the application.

Preview

The entity preview form displayed as an expanding element in the grid.

AppointmentBook

Used with the appointment, equipment, serviceappointment, and systemuser entities for the Service Scheduling user interface.

Dashboard

The form defines a dashboard.

Quick

A quick view form.

QuickCreate

A quick create form.

Element Information

XPath

//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/FormTypeRule |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/FormTypeRule 

Schema Name

FormTypeRule

Validation File

RibbonTypes.xsd

Can be Empty

Yes

See Also

Ribbon XML reference
Customize commands and the ribbon