Tips and tricks to get the most out of Microsoft Office InfoPath
Summary
Suppose you want to have the items listed in a drop-down be dependent on the selection of another drop-down (this is also known as "cascading dropdowns). If you have InfoPath Service Pack 1 installed, you could use the "Filter Data..." feature to accomplish this.
Example
You have one drop down labeled "State:" with the names of states and another drop-down labeled "City:" which gets populated with the names of the cities for the state you selected on the previous drop down.
The city drop-down obtains its values from an xml file which might look something like this:<Cities> <City state="Washington">Redmond</City> <City state="Washington">Seattle</City> <City state="California">Los Angeles</City> <City state="Florida">Orlando</City></Cities>
Implementation
Additional Notes/Tips
For the two above comments: in InfoPath 2003, you need to employ an XPath current() function, described in this article:
http://blogs.msdn.com/infopath/archive/2004/09/13/228881.aspx
InfoPath 2007 will do this for you.
Thanks,
- Alex