SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The idea is, to have a form in which only certain users can see one field.

We would have a locked down list that held the UserID's of those who can see the field, and the form would look that up. So if your ID is in the table, you can see this text field.

share|improve this question

migrated from Jan 26 '12 at 21:35

This question came from our site for professional and enthusiast programmers.

yes you can very well achieve this functionality. All you have to do is create a list which will contains the required user's emails. Then you will have a data connection to this list.

You can add a hidden text box inside infopath form and with help of getuserprofilebyname web service you can get current user's email id. The hidden text box will have the user email id only if user belongs to that list.

Then you can write condtional rule on display properties of text field- rule- if HiddenTextBox value is blank, hide this textbox.

Conclusion if user belongs to this list then he can see the field otherwise he will not.

Let me know if u need further inputs.

share|improve this answer
I was able to pull the information from the list, that was very helpful, but how do I check that list of names against the textbox with the userID? I've tried using a conditional, but it only checks against the first item. Any suggestions? – Joel Werner Jan 31 '12 at 14:12
u can write the rule like this-HiddenTextFieldVaue equals to @Member[. = Value[Name = "WorkEmail"]] where @Member is the column name in the list which contains the email id of the user. N.B.- hiddenfield value will be blank if user is not present in the list and value will not be blank if user is present. Sorry for the late reply.... – alam235 Feb 3 '12 at 15:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.