Option Button


The last object you will use for data entry is the Option Button, which sometimes is also called a Radio Button. Option buttons are used on a form to give the user a list of options that are bound to a single field, from which they can select only one, as shown in the shipping options shown here.

click to expand

When you first go to add an option button to your form, you will be presented with a dialog box like the one shown in the following illustration, which allows you to enter the number of option buttons that you want to create. This process is important as you can have multiple option buttons associated with a group and you can only select one of them.

After you have added option buttons to your form, you can edit the label that is associated with each as you would normally edit text on your form, and you can also specify the value that will be passed when the option is selected through each individual option’s property pages. To set the value and default selection, right-click one of the options on your form and select Properties to open the dialog box shown in Figure 6-16.

click to expand
Figure 6-16: Option button properties

Enter a value in the Value When Selected field to be passed back to the underlying data source or XML file when the form is submitted or saved. If you want to save the user some time and already have one of the options selected when they fill out the form, select the This Button Selected by Default check box.




How to Do Everything with Microsoft Office InfoPath 2003
How to Do Everything with Microsoft Office InfoPath 2003 (How to Do Everything)
ISBN: 0072231270
EAN: 2147483647
Year: 2006
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net