InfoPath Controls

Learn how to use and work with controls in InfoPath.

Button

InfoPath 2007

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.

InfoPath 2010

Make a Picture Button in InfoPath 2010 a non-clickable image

Learn a trick to have the image of a Picture Button appear as a normal non-clickable image on an InfoPath 2010 form.

Video Tutorial: Add an image to a page layout header in InfoPath 2010

Use PowerPoint 2010 to create button images for InfoPath 2010

Learn how you can use PowerPoint 2010 to create images that you can use for a Picture Button control in InfoPath 2010.

Check Box

InfoPath 2010

Choice field with maximum selections in InfoPath 2010

Learn how to create a group of check boxes and allow users to select a maximum of choices on an InfoPath 2010 form.

How to check all check boxes in a repeating table in InfoPath 2010

Learn how you can use rules on a Select All check box to check all check boxes in a repeating table in InfoPath 2010.

Date Picker and Date and Time Picker

A Date Picker control in InfoPath is an input control that allows a user to select or enter a date on an InfoPath form, while a Date and Time Picker control allows for both date and time entry.

Find tutorials on how to use InfoPath date picker controls.

Drop-Down List Box, Combo Box, and List Box

Drop-Down List Box, Combo Box, and normal List Box controls in InfoPath are input controls that allow you to display lists of items on an InfoPath form.

Find tutorials on how to use list boxes in InfoPath.

File Attachment

InfoPath 2007

Programmatically restrict the size of an attachment in InfoPath

Learn how you can write code in the Validating event of an InfoPath File Attachment control to restrict users to only uploading files of a particular size.

Video Tutorial: Programmatically restrict file types in InfoPath browser forms

How to upload a document to SharePoint from an InfoPath form

Learn how you can write code in the FormCode.cs file of an InfoPath form template to be able to extract and upload a document attached to the InfoPath form to a SharePoint document library.

How to submit a file attached to an InfoPath form as an attachment to a SharePoint list item

Learn how you can programmatically save a file attachment from an InfoPath form as an attachment to a SharePoint list item when the InfoPath form is submitted to the SharePoint list.

How to submit an InfoPath form to a SharePoint list and attach the form to the list item

Learn how to use the Attachments collection of a SharePoint list item to save the XML of an entire InfoPath form as an attachment to a SharePoint list item.

How to programmatically rename an InfoPath file attachment

Learn how you can write C# code to programmatically rename a file that has been attached to an InfoPath form.

Delete, remove, or clear an attachment from an InfoPath form

Learn how you can delete or clear an attachment field on an InfoPath form manually or through code.

Master/Detail

InfoPath 2010

InfoPath 2010 master detail example

This article shows an InfoPath 2010 master detail example that makes use of an InfoPath master detail control to present data that has a one-to-many relationship.

Multiple-Selection List Box

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.

People Picker

A People Picker or Person/Group Picker control in InfoPath is an input control that allows you to select one or more SharePoint users or groups on an InfoPath form.

Find tutorials on how to use the people picker control in InfoPath.

Rich Text Box

A Rich Text Box control in InfoPath is an input control is like a Text Box control with the addition that you can add formatting such as color and style to the text.

Find tutorials on how to use rich text boxes in InfoPath.

Repeating Table and Repeating Section

Repeating Table and Repeating Section controls in InfoPath are controls that can contain other controls and to which you can add rows/sections or from which you can remove rows/sections.

Find tutorials on how to use InfoPath repeating table controls.

Text Box

InfoPath 2003

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.

InfoPath 2007

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.

 

 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