Hi all, my first post here...
I need my Contact Selector to restrict the user selection to members of a specific AD group (that is, so that it would return only admins, for example). The elegant solution would be to modify the control's LDAP query accordingly, but I have no idea how to do this. If this is indeed possible, I'd like to know how.
A somewhat more crude solution is to make a separate LDAP query during a validation event and see if the selected user is a member of the desired group. Being somewhat newbish to Infopath, I have trouble figuring out the correct way to read the selector's text field.
So, what I'm trying to do is the following:
1. Let the user select the contact and the control do its job.
2. Get the the resulting displayName from the control (stuck here)
3. Use the name in a new query to see if this user is an admin (no problem, as soon as 2 is done)
4. Clear the field in case he's not (and inform the user of his folly).
PS: Oh, and the form is browser-enabled, if this helps any.