Insert a hyperlink
Microsoft Office InfoPath 2003 automatically inserts a hyperlink for you when you type a Web site address (such as www.example.com), a file location, or an e-mail address when filling out or designing a form. However, when filling out a form you can only insert a hyperlink into fields that allow hyperlinks. You can also turn text or a picture into a hyperlink.
Note To automatically create a hyperlink for text that includes spaces, enclose the phrase in quotation marks ("). For example, you would need to type "www.example text" to have the entire phrase formatted as a hyperlink.
Insert a hyperlink when filling out a form
- Click where you want to insert a hyperlink, or select the text or picture you want to turn into a hyperlink.
- On the Standard toolbar, click Insert Hyperlink
.
Note If the Insert Hyperlink option is not available, you may be trying to insert a hyperlink where they're not allowed.
- In the Link to box in the Insert Hyperlink dialog box, type the address you want to link to.
- In the Display this text box, type the text you want displayed on the form for the hyperlink.
Insert a hyperlink when designing a form
- In design mode, click where you want to insert a hyperlink, or select the text or picture you want to turn into a hyperlink.
- On the Standard toolbar, click Insert Hyperlink
.
Note When designing a form, in addition to typing or selecting text or a picture, you can also drag the hyperlink control onto the form from the Control task pane.
- Under Link to on the General tab, in the Insert Hyperlink dialog box, do one of the following:
To create a link to a specific Web address or file location, click Address, and then in the Address box, type the address you want to link to.
- To create a link to data entered into a control on the form, select Data source, click Select XPath , and then in the Select a Field or Group dialog box, select the field or group the control is bound to.
- To create a link to a combination of a Web address and data entered into a control, select Data source, and then in the Data source box, type: concat('Web address', xpath, '.html').
For example, to correctly link "http://example.com/myname.html" where the filename (in this case myname) is located somewhere else in the data source, you would need to type: concat('http://example.com/', my:name, '.html') into the Data source box.
- Under Display, do one of the following:
- To display a specific string of text for the hyperlink, click Text, and then in the Text box, type the text you want displayed.
- To have data entered into a control on the form displayed as the hyperlink's text, click Data source, click Select XPath, and then in the Select a Field or Group dialog box, select the field or group the control is bound to.
- To assign a ScreenTip to be displayed when a user rests the mouse pointer over the hyperlink, click the Advanced tab, and then in the ScreenTip box, type the text you want displayed.
Note On the Advanced tab, you can also assign an access key to the hyperlink, as well as set the hyperlink's tab order using the Tab index box.