<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Conditional Loginc in InfoPath 2010 Forms</title><link>https://www.infopathdev.com:443/forums/thread/102587.aspx</link><pubDate>Wed, 20 May 2015 20:32:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102587</guid><dc:creator>vj.lourdu@gmail.com</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=102587</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a Info path 2010 Form with the below mentioned fields This form is used for Approval Request and the the users will create the Approval Request for them or on Behalf on someone . &lt;/p&gt;&lt;p&gt;For example A project Manager will create a Approval Request for someone else. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;1.On Behalf Of Requester [This filed will be populated when a Program manager fills the Approval Request for some other person]&lt;/p&gt;&lt;p&gt;2.Requester[user who creates the particular list item for him.In this case the On Behalf Of Requester is empty] &lt;br /&gt;&lt;/p&gt;&lt;p&gt;3.Level 1 Manager&lt;/p&gt;&lt;p&gt;4.Level 2 Manager&lt;/p&gt;&lt;p&gt;5.Level 3 Manager&amp;nbsp;&lt;/p&gt;&lt;p&gt;Currently i am getting the User Name using &lt;b&gt;substring-after(userName(), &amp;quot;i:0#.w|DomainName\&amp;quot;)&amp;nbsp;&lt;/b&gt; which prints the current User Id without Domain name.&lt;/p&gt;&lt;p&gt;When the Requester field is not null i am getting the Account Id of the Person who created the Approval Request using the below formula. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;substring-after(eval(eval(Requestor, &amp;#39;concat(../my:Requestor/pc:Person/pc:AaccountId, &amp;quot;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;), &amp;quot;i:0#.w|Domain name\&amp;quot;) &lt;/b&gt;&lt;/p&gt;&lt;p&gt;I want to populate the Requester field using a condition. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;IF&amp;nbsp; On Behalf Of Requester is not empty then On Behalf Of Requester ELSE&amp;nbsp; the userName() of the person who is creating the list item.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Please let me know hot to achieve this.&lt;/p&gt;&lt;p&gt;http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://www.infopathdev.com/forums/p/7124/93123.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>