<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Username() not firing when opening existing form</title><link>https://www.infopathdev.com:443/forums/thread/77163.aspx</link><pubDate>Wed, 04 Apr 2012 14:51:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77163</guid><dc:creator>jmi77</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77163</wfw:commentRss><description>I found the answer: I should use the username() function in a rule instead to make it fire when existing forms are opened :-)</description></item><item><title>Username() not firing when opening existing form</title><link>https://www.infopathdev.com:443/forums/thread/77162.aspx</link><pubDate>Wed, 04 Apr 2012 13:44:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77162</guid><dc:creator>jmi77</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=77162</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a button in an Infopath template (it opens in Infopath and not the browser) that I hide using a rule that checks a field for a specific value.&lt;/p&gt;&lt;p&gt;The form is published to a Sharepoint 2007 library. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The field has the standard value username() that gets the username of the person logged on (logged into Sharepoint I guess) and it works fine when I create a new form in the SP library.&lt;/p&gt;&lt;p&gt;However, when I open an existing form in the library (that uses the same template of course) the field is blank and therefore the button is not hidden.&lt;/p&gt;&lt;p&gt;Why is the value in the field blank and/or how can I make the function get triggered?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If my solution dosen&amp;#39;t seem like a good one, which one would be better?&lt;/p&gt;&lt;p&gt;I&amp;#39;m basicly trying to hide a button from a specific set of users.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>