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

  1. In design mode, place the insertion point where you want to insert the expression box.
  2. If the Controls task pane is not visible, click More Controls on the Insert menu.
  3. Under Insert controls, click Expression Box.
  4. 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 Button image.
  5. 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.

Applies to:
InfoPath 2003