<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Web based forms - displaying sections based on user/group</title><link>https://www.infopathdev.com:443/forums/thread/44632.aspx</link><pubDate>Mon, 20 Jul 2009 06:12:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44632</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44632</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s my improved version of User Roles in browser-enabled forms.&amp;nbsp; This one leverages Active Directory security groups and distribution lists:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a title="Permanent Link to InfoPath – User Roles in Browser-Enabled Forms Using&amp;nbsp;Groups" href="http://claytoncobb.wordpress.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/" rel="bookmark"&gt;&lt;font color="#536d88"&gt;InfoPath – User Roles in Browser-Enabled Forms Using&amp;nbsp;Groups&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Web based forms - displaying sections based on user/group</title><link>https://www.infopathdev.com:443/forums/thread/42781.aspx</link><pubDate>Thu, 11 Jun 2009 16:33:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42781</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42781</wfw:commentRss><description>&lt;p&gt;Since you can&amp;#39;t use roles, you have to get creative.&amp;nbsp; Here are 2 methods - one with and one without code:&lt;/p&gt;
&lt;p&gt;1) Leverage the UserGroup web service to do conditional formatting on your sections based on SharePoint groups.&amp;nbsp; This is EXACTLY what you would want, but it requires some advanced techniques and some code.&amp;nbsp; I do not use it because of this, but it is a great solution:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.ianchivers.com/wordpress/?p=37"&gt;http://blog.ianchivers.com/wordpress/?p=37&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) The way I do this without code involves several moving pieces, but they are all OOTB functions of SharePoint and Office, including InfoPath:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Create a contact list on your site for managers.&amp;nbsp; Click Actions &amp;gt; Connect to Outlook so that this contact list gets synchronized with your Outlook 2007 client.&amp;nbsp; Add managers to this contact list by looking them up in the Global Address Book, right-click on each name, and select &amp;quot;Copy to Contacts.&amp;quot;&amp;nbsp; This will default to your personal contacts, but then you want to drag and drop all the managers from your contacts to the new Managers contact list that is synchronized in your Outlook &amp;quot;other contacts.&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;This will populate the SharePoint contacts list with the EXACT Active Directory info for each manager.&amp;nbsp; I prefer this method over hand-jamming each person, because even the slightest typo can cause issues&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the form, create a data connection for this contact list&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the form, create a new field called &amp;quot;CurrentUserEmail&amp;quot; or whatever you prefer&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Use the &lt;a class="" href="http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx"&gt;UserProfileService&lt;/a&gt;&amp;nbsp;and set the default value of CurrentUserEmail to the WorkEmail attribute of the GetProfileByName method&amp;#39;s data set returned automatically when a user opens the form&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In your Manager section, add conditional formatting that says &amp;quot;Any Occurrence of Email_Address (from Contacts secondary data source&amp;quot; is not equal to CurrentUserEmail, then hide&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;This will check each user&amp;#39;s email address and compare it with your Managers list.&amp;nbsp; If the current user isn&amp;#39;t one of the Managers in the list, then the section will be hidden.&lt;/p&gt;</description></item><item><title>Web based forms - displaying sections based on user/group</title><link>https://www.infopathdev.com:443/forums/thread/42770.aspx</link><pubDate>Thu, 11 Jun 2009 14:48:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42770</guid><dc:creator>davidevan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=42770</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having issues wrapping my head around conditional formatting and user roles in a web based form (InfoPath 2007). &lt;/p&gt;
&lt;p&gt;For example, say I have&amp;nbsp;a web based form for cost approval. This web based form has 2 sections. The&amp;nbsp;2 sections include an&amp;nbsp;employee section and manager section. When an employee loads the form I only want them to see the employee section but I want managers to see both sections. I know how to do this using conditional formatting and user roles in a non web based form but I have no clue how to do this with a web based form. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help is greatly &lt;span style="FONT-SIZE:11pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-CA;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;appreciated&lt;/span&gt;. &lt;/p&gt;</description></item></channel></rss>