InfoPath Tutorials: Use Basic InfoPath Controls

Learn how to use basic InfoPath controls such as buttons and text boxes.

Buttons

Display button text on two lines in InfoPath

Learn how you can use a secondary data source to display text on two lines on a button in InfoPath thereby creating a multi-line button label in InfoPath.

How to create a toggle button in InfoPath using rules and conditions

This article shows how you can create a toggle button in InfoPath using only rules and conditions; no code.

How to programmatically disable/enable a control on an InfoPath form

Use code to programmatically set the value of a control that will trigger Conditional Formatting on the control that you want to disable/enable.

List Boxes

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.

InfoPath Basics: 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.

Text Boxes

Auto-formatting a time field in InfoPath when it loses the focus

Use rules, conditions, the concat() function, and the substring() function in InfoPath to convert the way a time field is displayed from hhmm to hh:mm when the field loses the focus.

How to set the maximum field length in InfoPath

Learn how you can use a data validation condition to check the maximum field length in InfoPath and display an error message to the user if the maximum field length is exceeded.

Programmatically retrieve the value of an InfoPath form field using .NET code

Use the Copy XPath functionality to find out what the XPath expression of the field is and the Value property of the XPathNavigator object to retrieve the value of the field.

Working with InfoPath