InfoPath Custom Task Pane

In InfoPath, every control on the form must be bound to an element in the XML document and defined by the underlying schema. This can be limiting when you want to provide some additional assistance to retrieve information and/or populate the form.

One option is to use managed code that displays System.Windows.Forms dialogs launched by a button on the form. This comes at a cost of making development and deployment more complicated.

Another option is to use a Custom Task Pane. A Custom Task Pane in InfoPath is simply an HTML file that is displayed in the Task Pane on the right side of the form. The HTML file can have form controls that are not bound to elements in the XML document. The HTML can also have inline script and the script can call back into the InfoPath object model, including all your functions in the Form code-behind script. So, you don't have to worry about making web service calls from HTML script; you can use InfoPath query adapters.

This page in the InfoPath SDK explains how to use the Custom Task Pane.

This article is part of the GWB Archives. Original Author: Drew Robbins

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.