You can use an expression box to display read-only text, display the value of another control on the form, and create formulas that are based on XPath (XML Path Language (XPath): A language used to address parts of an XML document. XPath also provides basic facilities for manipulation of strings, numbers, and Booleans.) expressions.
Note An expression box only displays data and does not store it, so you should use an expression box only if you do not want to save its value or reference it in another formula.
- In design mode, place the insertion point where you want to insert the expression box.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- Under Insert controls, click Expression Box.
- In the Insert Expression Box dialog box, do one of the following:
To test the expression box, click Preview Form on the Standard toolbar.
- To type text or an XPath expression directly into the expression box, type in the XPath box.
- To insert a formula, click Edit Formula .
Note The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed.