Insert a list box

Microsoft Office InfoPath 2003

Show All Show All

Insert a list box

You can create a list box or drop-down list box on your form so that users can enter predefined values. List boxes are bound to fields and can look up values in a fixed list, in other parts of the form, or through a data connection to an XML document, a Microsoft Access database, a Microsoft SQL Server database, a Web service, or a Microsoft Windows SharePoint Services library or list.

  1. In design mode, place the insertion point where you want to insert the list box.
  2. If the Controls task pane is not visible, click More Controls on the Insert menu.
  3. In the Controls task pane, do one of the following:
    • To automatically create a field in the data source that is bound to the list box, select the Automatically create data source check box.
    • To bind the list box to an existing field, clear the Automatically create data source check box.

    Note  If the check box is unavailable, the form's design does not allow the data source to be automatically created.

  4. Under Insert controls, click List Box or Drop-Down List Box.
  5. If you cleared the Automatically create data source check box in step 3, select a field in the Control Binding dialog box to which you want to bind the list box.
  6. Double-click the list box that was inserted on the form.
  7. In the List Box Properties dialog box, do one of the following:

    ShowInsert a list box that looks up values in a fixed list

    ShowInsert a list box that looks up values in another part of the form

    ShowInsert a list box that looks up values by using a data connection

Note  The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more