<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Conditional Formatting to Hide Control</title><link>https://www.infopathdev.com:443/forums/thread/30800.aspx</link><pubDate>Thu, 24 Jul 2008 19:26:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30800</guid><dc:creator>srikrushna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=30800</wfw:commentRss><description>&lt;p&gt;If the data connection is with sahrepoint &amp;quot;User Information List&amp;quot;, &amp;quot;Account&amp;quot; field is the Reference by which we can set the conditional formatting.&lt;/p&gt;
&lt;p&gt;Now set the Conditional formatting to the field which&amp;nbsp;you want to hide&amp;nbsp;this way, saying :&lt;/p&gt;
&lt;p&gt;&amp;quot;If Any occurance of Account&amp;quot;&amp;nbsp;(is not equal)&amp;nbsp;username()&lt;/p&gt;
&lt;p&gt;then hide this control.&lt;/p&gt;
&lt;p&gt;This will hide the control,unless your credential is there in Sharepoint &amp;quot;user information list&amp;quot;.&lt;/p&gt;
&lt;p&gt;Hope this works fine.&lt;/p&gt;</description></item><item><title>Re: Conditional Formatting to Hide Control</title><link>https://www.infopathdev.com:443/forums/thread/30746.aspx</link><pubDate>Wed, 23 Jul 2008 17:51:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30746</guid><dc:creator>coldchamber96</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=30746</wfw:commentRss><description>&lt;p&gt;How could i do this using a sharepoint list of users?&amp;nbsp; I have the data connection set up and i&amp;#39;m trying to use a condition similar to this.&lt;/p&gt;</description></item><item><title>Re: Conditional Formatting to Hide Control</title><link>https://www.infopathdev.com:443/forums/thread/29558.aspx</link><pubDate>Fri, 20 Jun 2008 22:49:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29558</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29558</wfw:commentRss><description>&lt;p&gt;Your close... you need to use &amp;quot;and&amp;quot; instead of &amp;quot;or&amp;quot;. If you use OR, it will ALWAYS hide because the current user will never be equal to all 3 fields unless all 3 fields are identical.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;currentUser != user1 AND currentUser != user2 AND currentUser != user3 THEN hide control.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Conditional Formatting to Hide Control</title><link>https://www.infopathdev.com:443/forums/thread/29553.aspx</link><pubDate>Fri, 20 Jun 2008 21:09:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29553</guid><dc:creator>MelissaM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29553</wfw:commentRss><description>&lt;p&gt;I want a control to always be hidden unless it is one of the three specified users who are in the form.&lt;/p&gt;
&lt;p&gt;So, I added a field that will hold the current user name &lt;/p&gt;
&lt;p&gt;Then, put a condition on the field I want hidden, to be hidden&amp;nbsp;if Current user&amp;nbsp;is not equal to&amp;nbsp;melissam&lt;/p&gt;
&lt;p&gt;That worked just fine. So I proceeded to change the conditional formatting on the control to hide&amp;nbsp;if current user is not equal to user1 or user2 or user3. That conditional formatting did not work. Any suggestions?&lt;/p&gt;</description></item></channel></rss>