6.1. Using the Right Control for the Right Job

InfoPath has default controls it puts on forms based on the type of data the field is for. It does a good job, but it can only do so much. For instance, if you add a date field to the form, the Date Picker control is created for you. However, if you have a data field that is based on a lookup field, InfoPath doesn't automatically create a drop-down list box to look up the values; you have to know how to do that.

To get comfortable with the different controls, the following table displays the names of the controls in the Controls task pane along with what time of data you would use it with.

Control NameTypeDescription
Text BoxText InputDefault control for input, accepts plain text, no special characters.
Rich Text BoxText InputAccepts both plain text and rich text, allowing formatted text just as would be entered using Word with fonts, colors, and so on.
Drop-Down List BoxList InputDisplays specified values in a drop-down list, initially displaying the selected value.
List BoxList InputDisplays specified values in a list, initially displaying however many values you decide by dropping the control on the form.
Date PickerCalendarA calendar is displayed, and values chosen by clicking on a date.
Check BoxYes/NoUsed for specifying a true or false (yes or no) value. A checkmark is displayed in the box when true.
Option BoxMultiple ChoiceAlso called radio buttons, you can use option boxes to either pick multiple choices or single choices in a group.
ButtonCommandCreated to trigger actions to automate tasks on the form.
SectionSectionBase control for managing blocks of data such as tables on the form, or simply to break up a form for display purposes.
Optional SectionSectionCreates a section that starts with no records displayed on the form.
Repeating SectionSectionDisplays multiple rows from a table in a data source on a form. Displays data in a vertical manner.
Repeating TableSectionDisplays multiple rows from a table displaying the data across the form as an Excel worksheet or Access datasheet would.
Master/DetailSectionA method for tying together master/detail records such as customers and orders on a form.
Bulleted ListList DisplayDisplays data in a bulleted list on a form.
Numbered ListList DisplayDisplays data in a numbered list on a form.
Plain ListList DisplayDisplays a list of data on a form without bullets or numbers.

There are also additional controls for more advanced features such as file attachments and ink controls. For the complete list scroll through the Controls task pane.

As you are working through the chapters in this book, you will be working with the various types of controls. Each of the various controls share a few things in common, called properties. While the properties may vary depending on the type of control you are using, all controls have them.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.37.136