List Boxes in InfoPath

Learn how to use drop-down list boxes, combo boxes, list boxes, and multiple-selection list boxes in InfoPath.

Drop-Down List Boxes

InfoPath 2003

Auto-fill fields in InfoPath from a drop-down list box selection and secondary data source

Auto-fill fields in InfoPath from a drop-down list box selection and secondary data source

Create a shrinking list in a repeating table in InfoPath

Learn how to use rules and conditions in InfoPath to create a drop-down list box that shrinks in items as rows are inserted into the repeating table that contains the drop-down list box.

Database record selection in InfoPath through a dropdown list box

Learn how to select an item from a dropdown list box, retrieve the database record corresponding to the item, and display the data in fields in InfoPath 2003.

InfoPath 2007

Dynamically fill a drop-down list box in a browser form using another InfoPath form as a data source in SharePoint

Use the FileLocation property of the FileQueryConnection object to switch and point to different XML files when filling a drop-down list box in an InfoPath browser form in SharePoint.

Filtered cascading drop-downs in InfoPath browser forms using SharePoint lists and WSS owssvr.dll

Learn how you can use Windows SharePoint Services' (WSS) owssvr.dll and InfoPath's FileQueryConnection to write code that filters SharePoint list data displayed in dependent or cascading drop-down list boxes on an InfoPath browser form in SharePoint.

How to simulate Excel's VLOOKUP function in InfoPath to look up data in a secondary data source using rules and filters

Learn how to use rules and filters to look up data in a secondary data source (here: a SharePoint list) when an item is selected from a drop-down list box and create functionality similar to Excel's VLOOKUP function, but then in InfoPath.

List control basics in InfoPath

This article explains how to use list controls such as drop-down list boxes, combo boxes, list boxes, and multi-select list boxes in InfoPath.

Programmatically add items to a drop-down list box in InfoPath 2007

Bind the drop-down list box to a repeating node in either the Main or a secondary data source, and then loop through rows of data in another data source to populate the data source that is bound to the drop-down list box.

Programmatically check whether a value exists in a drop-down list box bound to a SharePoint list using an XPath filter

Learn how to use an XPath filter expression on a SharePoint list to look up a value in a secondary data source to which a drop-down list box in InfoPath is bound.

InfoPath 2010

Cascading drop-down list boxes in InfoPath 2010 - the non-traditional way

Learn about a non-traditional way of setting up cascading drop-down list boxes in InfoPath 2010 and how you can avoid infinite loops when running rules on fields that set each other's values.

Display the first item in a drop-down list box in InfoPath 2010

Learn how you can use an XPath filter expression to set a drop-down list box that is being populated by a SharePoint 2010 list to automatically select and display its first item.

Combo Boxes

InfoPath 2007

Automatically type in and add a new item to a drop-down list box on an InfoPath form

Use a combo box control and a web service to automatically type in and add new items to a list, thereby updating the underlying data store of the secondary data source that the combo box is bound to.

Display a message box if an item does not exist in the list of entries for a combo box

Use a rule to display a message box when an item entered into a combo box cannot be found in a list of valid entries.

InfoPath 2010

Video Tutorial: InfoPath combo box control

Learn what an InfoPath combo box control is and how it works.

List Boxes

InfoPath 2007

Programmatically move items between two lists in InfoPath using C# code

Learn how to copy items from a secondary data source to a list in the Main data source of a form and then move items between two lists which are bound to two repeating groups in the Main data source of the form template.

Multiple-Selection List Boxes

InfoPath 2007

Programmatically select all items in a multiple-selection (multi-select) list box

Use C# or Visual Basic code to loop through all of the items in the secondary data source a multi-select list box is bound to, and add each item to the DOM node that represents the multi-select list box.

Understanding the Multiple-Selection List Box in InfoPath

Learn how multiple-selection list boxes differ from other list boxes in InfoPath, how they store data, and how you can use this information to apply rules and conditional formatting, or to write code in InfoPath.

InfoPath 2010

Create text boxes for items selected in a multiple-selection list box in InfoPath 2010

Learn how you can use conditional formatting to hide and show rows of a repeating table that are based on the items selected in a multiple-selection list box on an InfoPath 2010 form.

Pre-select items in a multiple-selection list box in InfoPath 2010

Learn how to use default values to pre-select items in a multi-select list box in InfoPath 2010.

 

 Subscribe for updates via RSS or Email
InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services