Insert a check box InfoPath 2007
Author: mety Labels:: Insert a check box InfoPath 2007You can insert a check box on your Microsoft Office InfoPath form template so that users can quickly enter true or false values. Use one or more check boxes when you want to:
Tip By default, a check box is not selected. If you want a check box to be selected by default, you can double-click it and change its default state. Related controlsInfoPath includes other controls that are similar to a check box but that serve different purposes. To decide which of these controls works best on your form template, refer to the following list: Option button Like a check box, a group of option buttons enables users to make a choice. However, with option buttons, users select from a set of small circles instead of from a set of square check boxes. Also, check boxes typically represent nonexclusive choices, whereas option buttons are used to represent a single choice within a limited set of mutually exclusive choices. Multiple-selection list box A multiple-selection list box consists of a number of check boxes inside a scrollable list. Users can select more than one check box in the list or add their own entry to the list, depending on how your form template is designed. Insert a check boxThe procedure for inserting a check box differs slightly depending on whether you are designing a new, blank form template or basing the design of your form template on a database or other external data source. The following illustration shows how a check box looks when it is selected in design mode (design mode: The InfoPath design environment in which you can create or modify a form template.). Controls can be bound or unbound. When a control is bound, it is connected to a field or group in the data source so that data entered into the control is saved in the underlying form (.xml) file. When a control is unbound, it is not connected to a field or group, and data entered into the control is not saved. When you select or move your pointer over a control, text and a binding icon appear in the upper-right corner of the control. The text indicates the group or field to which the control is bound in the data source. The icon indicates whether the control is correctly bound to that group or field. When the binding is correct, a green icon appears. If there's something wrong with the binding, you'll see a blue or red icon instead. The data source for the form template consists of fields and groups that appear in a hierarchical view in the Data Source task pane. Check boxes are always bound to fields. In the following example, the Include hotel check box on the form template is bound to the includeHotel field in the Data Source task pane. If you are binding the check box to a repeating field, the check box must be inside a repeating control, such as a repeating table (repeating table: A control on a form that contains other controls in a table format and that repeats as needed. Users can insert multiple rows when filling out the form.) or repeating section (repeating section: A control on a form that contains other controls and that repeats as needed. Users can insert multiple sections when filling out the form.). Insert a check box on a new, blank form templateWhen you design a new, blank form template, the Automatically create data source check box in the Controls task pane is selected by default. This enables InfoPath to automatically create fields and groups in the data source as you add controls to the form template. These fields and groups are represented by folder and file icons in the Data Source task pane.
Insert a check box on a form template that is based on an existing data sourceIf you base the design of your form template on an existing Extensible Markup Language (XML) file, database, or Web service, InfoPath derives the fields and groups in the Data Source task pane from that existing data source.In this scenario, you can insert a check box by dragging a check box from the Data Source task pane onto the form template or by inserting a check box from the Controls task pane instead, as described in the following procedure:
Layout tipsUse the following tips to help you refine the appearance, size, and other aspects of a check box control:
|