Boolean
![]() |
[Applies to: Microsoft Dynamics CRM 4.0]
Find the latest SDK documentation: CRM 2015 SDK
Specifies a field that displays one check box or two radio buttons. The Boolean field type is one display option for bit type attributes. The other option is list. The list option uses the Picklist field type.
Note Changing the formatting options of a bit attribute is done on the form, not in the attribute definition like other attributes. Changing the formatting option from a check box or two radio buttons to a list will change the way that you access the values in the form, potentially breaking your code.
The following properties are available:
| Boolean properties | Type | Description |
| {Field}.DataValue | Boolean or Null | Get/set property.
The original value is left unchanged if the new value cannot be parsed. |
| {Field}.DefaultValue | Boolean | Get property.
Returns the default value for the field. |
Example
The following code example shows how to set a field of type Boolean.
crmForm.all.SOME_BOOLEAN_FIELD_ID.DataValue = true;
See Also
Concepts
Other Resources
.gif)