If the control is in the context of the repeating container, replace the part of XPath for the filter that matches the binding of the repeating container with the
current() property. For example, to use the
current() property, replace the part of XPath in the "Steps to reproduce the problem" section. To do this, follow these steps
InfoPath 2003
- Start Microsoft Office InfoPath.
- Open your template.
- Right-click the second list box, and then click List Box Properties.
- In the List Box Properties dialog box, click Select XPath under Entries.
- Click Filter Data, and then click Modify.
- In the Specify Filter Conditions dialog box, click Use a formula in the third list box.
- In the Insert Formula dialog box, click to select the Edit XPath (advanced) check box.
- In the Formula box, type the following:
current()/yourfield
InfoPath 2007
- Start Microsoft Office InfoPath.
- Open your template.
- Right-click the second list box, and then click Drop-Down List Box Properties.
- In the Drop-Down List Box Properties dialog box, click Select XPath to the right of the Entries field.
- Click Filter Data, and then click Modify.
- In the Specify Filter Conditions dialog box, click Use a formula in the third list box.
- In the Insert Formula dialog box, click to select the Edit XPath (advanced) check box.
- In the Formula box, type the following text:
current()/yourfield