O'Reilly logo

Beginning InfoPath™ 2003 by F. Scott Barker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.3. Providing Context-Sensitive Help

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.

Figure 14.13. Figure 14-13

The actual steps are:

  1. Create the Form: In the case of this example, the form from Chapter 6 is used.

  2. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required