InfoPath Resources

 

InfoPath Tip - Show text field if user selects other

This article demonstrates how to configure an InfoPath form with radio button options, to display a text field when the user selects "Other" from the options. The selected value, or the custom text value is stored in a separate field using rules, which can be promoted to a single SharePoint or database column. Conditional formatting is used to hide the text box until the user selects "Other".

View Full Article

InfoPath - Update Repeating Elements/Nodes in a Secondary Data Source

Programmatically loop through each node in an xml data source to find a specific element/node by the attribute value. This may be required to populate a CAML template before submitting to SharePoint via a web service. Post comments discuss a scenario where the function provided in the article can be used. See also InfoPath Code - Loop through items in a secondary data source from a SharePoint List for the details of a solution which implements the function provided in the article, as well as a modified version.

View Full Article Related: InfoPath - Loop through repeating table

InfoPath - Programming Tips - InfoPath Form Development

Tips for writing code in InfoPath forms. When should code be used in an InfoPath form? When should rules and code be used to process data in an InfoPath form? When should code be avoided in an InfoPath form? The article also provides some tips to help improve development time when creating InfoPath forms that use code.

View Full Article Related: About programming InfoPath

InfoPath Code - Loop through items in a secondary data source from a SharePoint List

This article explains how to use code in an InfoPath form to loop through repeating elements in a secondary data source of an InfoPath form. This can be used when all elements have the same name, such as "Field" in a CAML query (XML). The name of the required element is passed to a function which loops through the repeating elements of the secondary data source until it finds the required element by matching the value of the "name" attribute. Once the required element has been found, the value is then updated as required.

View Full Article Related: InfoPath - Update Repeating Elements/Nodes in a Secondary Data Source