Basic Controls in InfoPath
Learn how to use basic controls such as buttons and text boxes in InfoPath.
Buttons
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.
Text Boxes
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.


