Hi,
Still working on same form, was able to solve previous problems around cascading drop downs, after days of trial and error. New problem, hoping I can get some help with this one. In my form, my user is to select a name from a dropdown listbox which is populated from a sharepoint list. Based on which name is selected, I would like a "Phone Number" text box to be automatically populated from the same row in the same sharepoint list. Found tutorial on this forum (http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85), and trying to adapt it. The problem I have is this, when creating the rule, I am using the following expression (appended to match the tutorial ):
xdXDocument:GetDOM("Contacts")/dfs:myFields/dfs:dataFields/dfs:Contacts/@Business_Phone [../ID = current () ]
I am getting the following error message.
"xdXDocument:GetDOM("Contacts")/dfs:myFields/dfs:dataFields/dfs:Contacts/ID" does not point to a valid location path of a field or group.
The following portion of the expression is populated by infopath when I select the field in the add expression dialog box:
"xdXDocument:GetDOM("Contacts")/dfs:myFields/dfs:dataFields/dfs:Contacts/@Business_Phone"
One question is this:
Is ID used here an xml function or should I be entering something else.
Please help, last step to getting form working and really need to get it done.
Thanks,
CMH