Insert option buttons
You can create a group of option buttons on your form so your users can easily and accurately enter specific values. A group of option buttons is bound to a single field in the data source. When a user clicks an option button, the value associated with that option button is stored in the field.
Insert a group of option buttons (automatically create the data source)
You can have Microsoft Office InfoPath 2003 automatically create the data source when you insert option buttons. If you do this, InfoPath will create a field that is bound to the group of option buttons.
- In design mode, place the insertion point where you want to insert the option buttons.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- In the Controls task pane, make sure the Automatically create data source check box is selected.
Note If the check box cannot be selected, the form's design does not allow the data source to be automatically created. You must insert a group of option buttons that is bound to an existing field or to a field that you create.
- Click Option Button.
- In the Insert Option Buttons dialog box, enter the number of option buttons you want to insert, and then click OK.
- To change the value stored in the data source when an option button is clicked, double-click the option button
to open the Option Button Properties dialog box, and then enter the value you want in the Value when selected box.
Note By default, the first option button in the group will save the value "1" when clicked, the second will save the value "2," and so on.
Insert
a group of option buttons (bind to an existing field)
- In design mode, place the insertion point where you want to insert the option buttons.
Note If you are binding the option buttons to a repeating field, the option buttons must be inside a repeating table or repeating section.
- If the Data Source task pane is not visible, click Data Source on the View menu.
- In the Data Source task pane, right-click the field you want the option buttons to be bound to, and then click Option Button on the shortcut menu. If you do not see Option Button as a choice on the shortcut menu, click More. If you still do not see Option Button, make sure the field does not have a rich text or picture data type.
- In the Insert Option Buttons dialog box, enter the number of option buttons you want to insert, and then click OK.
- To change the value stored in the data source when an option button is clicked, double-click the option button
to open the Option Button Properties dialog box, and then enter the value you want in the Value when selected box.
Note By default, the first option button in the group will save the value "1" when clicked, the second will save the value "2," and so on. The allowable values depend on the data type of the field to which the option buttons are bound.
The binding is correct.
The control may not function as expected because of a potential binding problem. To identify the potential problem, right-click the control, and then click More Details on the shortcut menu.
The control will not function correctly because of a binding problem. To identify the problem, right-click the control, and then click More Details on the shortcut menu.