Hi All,
I am pretty new to InfoPath browser forms 2010 and SharePoint 2010 development and I have been attempting to determine the manager of a staff member that is entered into a contact selector (people/group chooser). So I have created a changed event for the contact selector that passes the value in the contact selector to the userprofileservice and returns the manager and updates another field on the form. The problem is that when I click the button on the contact selector, the display name updates in the contact selector but the name of the manager doesn't appear in the text field. I think there may be a post back issue, because if I click any of the form's menu buttons, such as print preview, submit(with validation errors), close(then cancel the close dialogue) the manager's name updates in the field on the form.
Then, every time I change the value in the contact chooser after that initial post back the manager name updates every time in the text field. When I open a new form in the browser the changed event doesn't fire correctly again. I have tried to debug this in preview mode, but the changed event runs first time, every time and returns the correct results. Are you aware of the cause of this issue and if it can be resolved?
Thanks in advance,
Phil.