Besides displaying view choices in a custom task pane as shown back in Chapter 11, "Working with Code in Your InfoPath Form," you can also use the custom task pane to display context-sensitive help. Context-sensitive help is information displayed based on where the user is on a form. For example, when a customer is in a field such as Customer ID, you can display a description for the field or give instructions on how to enter certain types of data. In Figure 14-13, you can see an example of the form taken from Chapter 6, "Working with Controls in General," modified to use context-sensitive help.
Just as when you're using the custom task pane for displaying views, you specify the custom task pane properties using the Advanced tab of the Form Options dialog box. In addition to this, you will supply an HTML page providing the information in the task pane. Finally, you will add code to the ContextChange event so that as you are moving to each part of the form, the task pane will change the description text to match.
The actual steps are:
Create the Form: In the case of this example, the form from Chapter 6 is used.
Create the HTML Web page: In creating the HTML Web page, you will use standard HTML statements (tags) in a format that can be used by the code written for the ContextChange event. You can see an example of ...