Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.
Add custom Help text to a form template
To help users understand the purpose of your form, and to help them fill it out successfully, you can add instructional Help text to your form template.
This article explains how to determine the best type of Help text for your form template by considering factors such as the type of form template you create, your audience, how widely your form template will be deployed, and whether users will fill out forms based on your form template by using a Web browser.
In this article
Compatibility considerations
When you design a form template in Microsoft Office InfoPath 2007, you can choose to design a browser-compatible form template (browser-compatible form template: A form template that is designed in InfoPath by using a specific compatibility mode. A browser-compatible form template can be browser-enabled when it is published to a server running InfoPath Forms Services.).
When you design a browser-compatible form template, some features are unavailable. For example, custom task panes (custom task pane: An .html file whose content is displayed in a window next to a form. Custom task panes can provide form-specific commands and Help content.), which are often used to display custom Help text, are unsupported in browser-compatible form templates. To add Help to a browser-compatible form template, consider an alternate way to add Help, such as using conditional formatting (conditional formatting: The process of changing the appearance of a control, including its visibility and read-write state, based on values entered into the form.) to display contextual Help.
Top of Page
Types of Help
Depending on the complexity of your form template and the needs of your users, you can add different types of Help text, using different procedures. Depending on your form template, you might use more than one type of Help text in your form template. The following is a list of the most common ways to display Help text in your form template:
Top of Page
Create a view to show Help
In order to create a separate view in your form template for users to view Help about filling out the form, you need to first create a Help view for your form template, and then add a button to your default form view that users can click in order to access the Help view.
Create a Help view
- On the View menu, click Manage Views.
- Under Actions in the Views task pane, click Add a New View.
- In the New view name box, type a name for the Help view, and then click OK.
For example, type Help.
- On the form template, click in the view that you just added, and type or paste the Help text that you want.
- If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.
- In the Controls task pane, click Button.
- Right-click the button that you added, and then click Button Properties on the shortcut menu.
- Click the General tab.
- In the Label box, type a label for the button. For example, type Return to Form.
- Click Rules.
- In the Rules dialog box, click Add.
- Click Add Action.
- In the Action box, click Switch views.
- In the View box, click the name of your default view.
- Click OK four times to return to the form template.
After you create the Help view for your form template, you need to add a button to your default view, so that users can easily access the Help view when they fill out your form.
Add a button to your default view
- On the View menu, click Manage Views.
- In the Views task pane, click the name of your default view.
- If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.
- In the Controls task pane, click Button.
- Right-click the button that you added, and then click Button Properties on the shortcut menu.
- Click the General tab.
- In the Label box, type a label for the button. For example, type Help.
- Click Rules.
- In the Rules dialog box, click Add.
- Click Add Action.
- In the Action box, click Switch views.
- In the View box, click the name of your Help view that you added in the previous procedure.
- Click OK four times to return to the form template.
Tip You can optionally add the same controls to the Help view as those contained in the default view. This gives users the choice between filling out the form in the default view if they do not need assistance, or using the Help view to fill out the form if they need to see the Help text instructions.
Top of Page
Create a custom task pane to show Help
Notes Before you create a custom task pane to display Help in your form template, consider the following:
- Browser-compatible form templates do not support custom task panes.
- Before you enable a custom task pane, you must first create an HTML file for the custom task pane by using an HTML editor such as Microsoft Office SharePoint Designer 2007.
To create and enable a custom task pane, do the following:
- On the Tools menu, click Form Options.
- Under Category, click Programming.
- Select the Enable custom task pane check box.
- In the Task pane name box, type the name that you want to appear at the top of the custom task pane. For example, type Help.
- To add a file to your form template, click Resource Files.
Note To link a file to your form template, in the Task pane location box, type the absolute path for the location of the HTML file, and then click OK.
Security It is recommended that you link to an HTML file that is located in the same domain as your form template. Otherwise, users who open a form that is based on your form template will see an alert.
- In the Resource Files dialog box, click Add.
- In the Add File dialog box, browse to and select the HTML file that you want, and then click OK.
- If the HTML file that you added references additional files, such as cascading style sheets (cascading style sheets (CSS): Declarations, either embedded in a Web page or stored in a separate .css file that is linked to a Web page, that specify the appearance of particular HTML elements.), add those files as well.
Tip You can specify only one HTML file to open in the default custom task pane for your form template, but you can add additional HTML files to your form template as resource files, and then create hyperlinks between them.
- In the Form Options dialog box, click the name of the HTML file that you just added in the Task pane location box.
- To test your changes, click Preview on the Standard toolbar, or press CTRL+SHIFT+B. The custom task pane that you just created should appear by default when you preview the form template.
Top of Page
Use conditional formatting to show contextual Help
The following procedure describes how to use conditional formatting to show or hide contextual Help.
- If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.
- In the Controls task pane, click Check Box, and then click Section.
- Click in the section that you just added to your form template, and type some Help text.
- Delete the default label text for the check box, and then type
Click to show or hide Help.
- Click the tab for the section on your form template, and then on the Format menu, click Conditional Formatting.
- Click Add.
- Under If this condition is true, in the first box, click Select a field or group.
- In the Select a Field or Group dialog box, select the field that corresponds to the check box control that you added in step 2, and then click OK.
- In the second box, in the Conditional Format dialog box, click
is equal to.
- In the third box, click
FALSE.
- Under Then apply this formatting, select the Hide this control check box.
Note The condition now states that if the check box is selected, the section will be displayed.
- To test your changes, click Preview on the Standard toolbar, or press CTRL+SHIFT+B.
Top of Page
Create a hyperlink to an external Help file or Web site
The following procedure describes how to add a hyperlink from your form template to an external Help file, such as an HTML file or a compiled Help (.chm)
file, or to a Web site, such as a technical support Web site.
Notes
- Make sure that the external Help file or Web site
that you create a link to is accessible by your users. If you want to add a link to an HTML file in a form template that is compatible with InfoPath only (in other words, users must use InfoPath to fill out forms based on that form template), you can add HTML files to the form template by adding them as resource files that open in a custom task pane. For browser-compatible form template, you should publish the HTML files to a site that is accessible to your users, preferably the same Web site where your form template is located, and create a static hyperlink in your form template that points to the external HTML file.
- If you decide to use another format for your Help file, such as a .chm file, remember to verify whether the file format that you choose is supported on the operating systems on your users' computers.
Create a static hyperlink to an external file
- On the form template, click where you want to insert a hyperlink, or select the text or picture that you want to turn into a hyperlink.
- On the Standard toolbar, click Insert Hyperlink
.
- Click the General tab.
- In the Address box, type the URL that you want to link to.
- To change the hyperlink text that appears on the form template, type the text that you want in the Text box.
Note If you selected a picture in step 1, this option is unavailable.
- To assign a ScreenTip
that will appear when a user moves the pointer over the hyperlink, click the Advanced tab, and then
in the ScreenTip box, type the text that you want to display.
- To test your changes, click Preview on the Standard toolbar, or press CTRL+SHIFT+B.
Top of Page
Add instructions for users to view the InfoPath Help system
InfoPath includes a dedicated Help system that people can use when they fill out forms. This Help system contains information about common tasks, such as turning on or off AutoComplete and checking the spelling of text in a form. As a form designer, you can open InfoPath Help for form users by pressing F1
when you are previewing a form in the preview window.
Help for form users is limited to tasks that apply to all forms, so it is a good idea to provide custom Help for the form templates that you design. To help your users view the InfoPath Help system when they fill out a form, you can add instructions to your form template that explain how to access the InfoPath Help system. For example, you might include one of the following examples in your form template:
- To open InfoPath Help, press F1.
- To open InfoPath Help, click Microsoft Office InfoPath Help on the Help menu.
Top of Page
|