Security on drop down list

J

Joanne

I'm not sure if anyone ever reads this newsgroup but I will give it a try. I
could really use some help.

We have a drop down list of attorney names. When the attorney opens an
Infopath form, we want the particular attorney to see only their name in the
drop down list. The administrators can see the whole list. Is there a way
to apply security to the drop down list to match it against the logon name?
Thank you very much for your help.
 
G

Greg Collins [InfoPath MVP]

It seems like instead you should not even offer a drop-down list to the attornies. Instead, just autopopulate their name into the field, and show them a readonly field or expression box.

You will need some kind of flag field which specifies whether the current user is an attorney or an admin.
 
J

Joanne

Thank you very much. But how do I autopopulate the field with the user name
from Windows? That's where I'm stuck. I'm sorry I'm such a newbie
 
G

Greg Collins [InfoPath MVP]

If it is just the login name, you can use Environment.UserName when working with managed code. Outside of that, check out the Active Directory Web Service put out by Qdabra.com
 
Top