I noticed something rather interesting regarding the way CRM 2011 handles the OnChange event for a Two Option ( or bit field in CRM 4.0 terminology ).
Bit fields can be displayed in one of the following styles:
Radio Buttons
Note: This is the default configuration.
Checkbox
List
The OnChange Event
The normal CRM OnChange Event is fired when a person makes a change to a form field then leaves the field ( using either the tab key or the mouse ). The Two Options fields in CRM 2011 seem to function differently, depending on how the field is formatted on the screen:
Format | OnChange Action |
Radio Buttons | The OnChange event is fired immediately upon making the radio button selection. |
Checkbox | The OnChange event is not fired until focus leaves the control. |
List | The OnChange event is fired immediately upon making the radio button selection. |
Understanding this action is important because sometimes you need to alter the layout of the form ( hiding or showing items ) based on the setting of a Two Option field. AND, you don’t want the user to have to leave the field to make that change appear. ( that is a very awkward series of actions for a user ).
That means that in most cases, you want to use either the Radio Button format or the List format for a Two Option field so that you get that immediate feedback to the user.