<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Display a certain field based on the viewing user</title><link>https://www.infopathdev.com:443/forums/thread/92369.aspx</link><pubDate>Tue, 20 Aug 2013 10:55:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92369</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92369.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92369</wfw:commentRss><description>&lt;p&gt;You can put your field in a section and only show it when X people open the form.&amp;nbsp; I&amp;#39;d also have 2 views and a form status field. 1. Submitter, 2. Team X. - then depending on the form status you could open view Team X.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class="gmw_"&gt;To help &lt;span class="gm_ gm_7de07493-2847-c02e-4bfe-38c6ae11da9e gm-spell"&gt;troublshoot&lt;/span&gt; add a dummy current user field, that way you can see who the form thinks is opening the form and it will help you with your formatting rule. &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Display a certain field based on the viewing user</title><link>https://www.infopathdev.com:443/forums/thread/92348.aspx</link><pubDate>Mon, 19 Aug 2013 15:42:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92348</guid><dc:creator>timsedona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92348.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92348</wfw:commentRss><description>&lt;p&gt;Hello Patrick&lt;/p&gt;
&lt;p&gt;I understand the UserProfileService and the username function(). These are working great in the contact section. Please forgive I don&amp;#39;t think I explained it very well. The form is created for a user to fill out and submit. Once there is a submission, I have a workflow to send an email to the owning team of the form, notifying them there is a new request.&amp;nbsp;The next step&amp;nbsp;where I am having trouble. Once the form is submitted and a user of the owning team opens the form, they are asking for a section to be only seen by their team.&lt;/p&gt;
&lt;p&gt;I tried setting an Action rule on the field to query the UserProfileService, then set the condition to Account Id is not equal to Account ID (of the secondary connection, owning team users) but to no avail.&lt;/p&gt;
&lt;p&gt;Would the owning team need to open the form in edit in order for the rule to run?&lt;/p&gt;</description></item><item><title>Re: Display a certain field based on the viewing user</title><link>https://www.infopathdev.com:443/forums/thread/92269.aspx</link><pubDate>Sun, 18 Aug 2013 22:55:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92269</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92269</wfw:commentRss><description>&lt;p&gt;Hi Tim Sedona and welcome,&lt;/p&gt;
&lt;p&gt;To get current user you should use either the userName() function&amp;nbsp;or SharePoint&amp;#39;s UserProfileService, or Qdabra&amp;#39;s Active Directory Web service. First two&amp;nbsp;options are out-of-box. The People Picker is used to add users to your form that should get email notifications, etc. If you are trying to assign a form to a user using People Picker, you can integrate it with UserProfileService to query the names and get the groups, but it&amp;#39;s a bit of a pain to extract the data if you have more than one user that needs to be selected. &lt;/p&gt;
&lt;p&gt;Anyway, once you verify that the aliases (usernames) you get back from your People Picker plus UserProfileService query correspond to the actual column values in your SharePoint list of user/groups (note: I&amp;#39;m assuming this ShP list has group information in it but you could use the UserProfileService to get group info), you just set the group info in a field in your main data source and then add formatting on the section to hide if the current user is not in the group. You can look up the user by filtering the secondary SharePoint list data source or querying the UserProfileService. Take a look at Clayton Cobb&amp;#39;s SharePoint Madness site for a great example of getting group info.&lt;/p&gt;
&lt;p&gt;Eminently doable. Best of luck,&lt;/p&gt;</description></item><item><title>Display a certain field based on the viewing user</title><link>https://www.infopathdev.com:443/forums/thread/92255.aspx</link><pubDate>Fri, 16 Aug 2013 17:30:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92255</guid><dc:creator>timsedona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92255</wfw:commentRss><description>&lt;p&gt;I currently have one section which holds a people picker control that populates the current user. Once the form is submitted, I need a section of the form to be displayed based on a group of users. So far, I have created a SharePoint&amp;nbsp;&amp;nbsp;list of these users.&amp;nbsp;In the hidden section, there is a people picker that would&amp;nbsp;populate the user from the list&amp;nbsp;which&amp;nbsp;views the form. The&amp;nbsp;issue&amp;nbsp;I am running into is building the logic to display the section and&amp;nbsp;populate the user. Would I need&amp;nbsp;create a&amp;nbsp;rule to populate the second people&amp;nbsp;picker (from the&amp;nbsp;hidden section) based on the&amp;nbsp;username, then filter the results based on the&amp;nbsp;SharePoint list?&amp;nbsp;How would I&amp;nbsp;then show the field when that user views the form? All responses are greatly appreciated. &amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>