Insert an expression box
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 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 type text or an XPath expression directly into the expression box, type in the XPath box.
- To insert a formula, click Edit Formula .
- To test the expression box, click Preview Form on the Standard toolbar.
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. Learn more